Replace occurances of a user defined string
s1 with
a user defined string
s2. If
s2
is empty, occurances of
s1 will be stripped
(removed).
Replace string
s2 may contain
formatting parameters, which will be parsed and used by the replacer.
-
"Match case": when checked, only strings with exact case as of
s1 will be replaced.
-
"Replace only first occurance": when checked, only first occurance of
s1 in each filename will be replaced.
-
"Replace only whole words": when checked, occurances of
s1 which forms a word will be replaced.
Words are seperated by the the default space character, which can be changed by
adding the Space Char filter to the apply list
before this filter.
-
"Search string is a regular expression": Replacer will treat
s1 as a regular expression. In this case,
s2 may contain the expression $0, which
will be parsed to the string matched to the regular expression.
When this ooption is checked, the options "Replace only whole words" and "Match case" cannot be used.
Examples
Replace
'dog' with
'cat', replace only whole words:
The dogs ran from the dog.txt >>>
The dogs ran from the cat.txt
Replace
'[0-9]*' with
'[$0]', replace only first occurance,
search string is a regular expression:
06 - Trouble.mp3 >>> [06] -
Trouble.mp3