nhreplace v2.8.0

nhreplace v2.8.0 released.

New feature – replace text with formatted regular expressions.

Replacing text with formatted regular expressions

New command line argument was added:  -ft (-formatted text) set replacing text with capture group support.

Formatted replacing text can be used when searching for a regular expression with -sre argument.

Value of -ft argument may contain ECMAScript Format Flags as $1, $2 etc.

An example of replacing text with format flags:

-sre:"(<lang>)(\s*)(RU-ru|Rus)(\s*)(</lang>)" -i -ft:"$1ru$5"

-ft argument can be used in

  • nhreplace command line
  • replace list file, specified with -list argument.

Download and install

New version of nhreplace available on download page.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *