ReplaceRegex

ReplaceRegex find and replaces text by simple string find/replace or via regular expression matching. Back references can be used in replaced text.

Replaceregex command line program finds a given string (or a regular expression pattern) in a batch of files, replaces them with another string and places the output files in a separate directory if such directory is specified. The file size must be small enough to fit in available memory.

Command line parameters are:

-srcdir adirectory directory of the original files. By default, this is the current directory.

-destdir adirectory destination directory to save modified files. By default, this is the current directory. The source files will be over written.

-find atext this is the simple text to replace.

-regex atext this is the regular expression pattern to replace. You can use capturing groups as () and you can refer to these groups using $1, $2 etc syntax in the replacement text. You can also have escaped characters like \t, \r, \n.

-replace atext replace the text that was found with this one. Captured regular expression groups can be used as $1, $2 and so on.

-fname apattern the file name pattern to search, for example *.*

-casesens presense of this flag means search is case sensitive.

-quotes atext is used to represent double quotes in the -find, -regex and -replace parameters. This is to help escaping quotes inside your -find, -regex and -replace parameters.

-tab atext is used to represent tab (\t) character in the -find and -replace parameters. This is to help escaping tab inside your -find and -replace parameters. Use regular expression escapes for -regex.

-cr atext is used to represent carriage return (\r) character in the -find and -replace parameters. This is to help escaping carriage return inside your -find and -replace parameters. Use regular expression escapes for -regex.

-lf atext is used to represent new line character (\n) in the -find and -replace parameters. This is to help escaping new line inside your find parameters. Use regular expression escapes for -regex.

-r recursively process sub directories.

Bestcode is pleased to provide the following file utilities to make bulk processing of files easier through

Download

System Requirements:

Windows2000, WinXP, Windows2003, Windows Vista Starter, Windows Vista Home Basic, Windows Vista Home Premium, Windows Vista Business, Windows Vista Enterprise, Windows Vista Ultimate, Windows Vista Home Basic x64, Windows Vista Home Premium x64, Windows Vista Business x64, Windows Vista Enterprise x64, Windows Vista Ultimate x64

Version:

1.0

Last updated:

2010-11-23 11:07:40

Publisher:

BESTCODE.COM

Homepage:

http://www.bestcode.com

File name:

File size:

17KB

License:

Shareware

Price:

19.95

You may also like...