I am having some trouble using regex in a command line format.
Some of the “find” strings work when I test them in the application, but fail to do anything when I use them from a command line. For example, this line in a script-generated directory listing, (which has had its numerous extra spaces edited out by the forum editor software, so I replaced them with ‘.’),
“Mode……………LastWriteTime…..Length.Name………………..n”
in the application, this string
Mode.*LastWriteTime.*Length Name.*n
works to replace this line, but it fails from command line when entered like this:
“C:Program FilesEmEditoremeditor.exe” /fi “Mode.*LastWriteTime.*Length Name.*n” /x “c:tempfile.txt” /rw “”
are there different rules for regex find and replace from a command line?