::: J - The Replace argument represents a JScript expression. ::: I - Makes the search case-insensitive. ::: E - The Search must match the end of a line. ::: B - The Search must match the beginning of a line. ::: incompatible with the M option unless the S option is present. ::: there was a change anywhere in the string. ::: If the S options is present, then prints the result only if The option characters are case insensitive, and may ::: Options - An optional string of characters used to alter the behavior ::: Replace substitution pattern syntax is fully documented at ::: An empty replacement string must be represented as "". ::: submatch, $2 the second captured submatch, etc. ::: the entire search pattern, $1 represents the first captured ::: For example, $& represents the portion of the source that matched ::: substituion patterns available to the JScript replace method. ::: Replace - By default, this is the string to be used as a replacement for ::: JScript regex syntax documentation is available at ::: Search - By default, this is a case sensitive JScript (ECMA) regular ::: If called with a single argument of /V, case insensitive, then prints ::: argument of /?REPLACE, then opens up Microsoft's JScript REPLACE ::: JScript regular expression documentation within your browser. If a single argument of /?REGEX, then opens up Microsoft's ::: If called with a single argument of /?, then prints help documentation ::: batch special character like &, |, etc. The quotes should also be used if the argument contains a ::: if the parameter contains a batch token delimiter like space, tab, comma, ::: quotes are not considered part of the argument. ::: Each parameter may be optionally enclosed by double quotes. ::: each line of input from stdin and prints the result to stdout. ::: Performs a global regular expression search and replace operation on *.xslt ^| sort /r') do (Ĭ:\path\fnr.exe -cl -dir "c:\" -filemask "*.txt" -find "v34" -replace "v35" -includeSubDirectoriesīatfile for replace with regex : /* find string and replace \fnr.exe -cl -dir "c:\" -filemask "*.txt" -find "v34" -replace "v35" -includeSubDirectoriesįor /f "delims=" %%F in ('dir /b /s *. Simple solution use powershell for get all folder and file names then rename to new name see this example get-childitem -filter *v34.txt | foreach | Set-Content v35.txtįor cmd you can get-content and then replace v34 to v35 type v34.txt|repl "v34" "v35" >v35.txtįor change content of txt file you can use fnrtooland down is example for you but still i suggest to you use powershellįor your code.