How to Find and Replace only first match?

Jul 18, 2014 at 7:21 AM
Edited Jul 18, 2014 at 7:30 AM
Hi,
My present command line in a .bat file (using XP) looks like this:
fnr15.exe --cl --dir "%cd%" --fileMask "*.xml" --excludeFileMask ".dll, .exe" --caseSensitive --useRegEx --skipBinaryFileDetection --showEncoding --find "<top-system-distance>[0-9]{1-3}\.[0-9]{1-3}</top-system-distance>" --replace "<top-system-distance>170</top-system-distance>"

In this case all found <top-system-distance>.</top-system-distance> are replaced by <top-system-distance>170</top-system-distance> in all processed files.

However I want only the first founded <top-system-distance>.</top-system-distance> in every file to be replaced. Can this be realized by adding some simple code?

Thanks,
Rob