This project has moved and is read-only. For the latest updates, please go here.

Backslash inserted before dot in replacement text

Apr 3, 2014 at 10:34 AM
Edited Apr 3, 2014 at 10:38 AM
I am searching for the regular expression:
and trying to replace it with a line set from a batch file.

This works fine in the GUI but from the command line there is a backslash inserted after the number, so for example with replacement text of:
the result is:
If I try to quote the dot in the replacement with backslash I get three slashes in the result

Here is the command line used:
"C:\tools\fnr.exe" --cl --dir "C:\Test" --fileMask "TestProj.vbproj" --useRegEx --find "<TargetFrameworkVersion>v[24].0</TargetFrameworkVersion>" --replace "<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>"
Apr 22, 2014 at 12:04 PM
Edited Apr 22, 2014 at 12:04 PM
if using regEx, it appears the replace is escaped automatically (for reg ex chars), unless you pass the parameter --useEscapeChars
May 6, 2014 at 11:04 AM

Thank you for reporting this issue.

It is now fixed in version "1.7 BETA":