BabelPad Help : Batch Replace



Batch Replace Dialog Box

This box allows you to replace multiple source strings with multiple target strings in the current document.


You may either manually type or paste the source or target strings into the edit box, or you may load the source and/or target strings from file.

To separately load the source or target strings from file, click on the Load Source Strings button or Load Target Strings button. The file should be UTF-8 encoded with each string on a new line.

To load the source strings and target strings from a single file, click on the Load Source and Target Strings button. The file should be UTF-8 encoded with each pair of strings on a new line separated by a tab character.

There must be the same number of entries for the lists of source strings and target strings, although the target strings may include blank lines if the corresponding entry for the source string is to be replaced by nothing. The source strings may not include any blank lines.

All instances of each source string in the document will be replaced by the corresponding target string. The replacement is case sensitive. Note that the replacement is chaining, so for example if you specify source strings "red", "green", "blue" and corresponding target strings "green", "blue", "orange", then all instances of "red", "green" and "blue" will be converted to "orange".


NB There is a Windows limit of 1024 characters per line in the edit box. If any line has greater than 1024 characters, Windows will wrap the line, and BabelPad will throw an error "Both boxes must have the same number of lines" when you hit the Replace All button. If you get this error and you are sure both boxes have the same number of lines then please ensure that no lines are longer than 1024 characters (where a supra-BMP character counts as 2 characters).



See Also



Download | Help Contents