When you do a text seach, you can use a regular expression. For example "(cat|dog)[0-9]" will match all strings beginning with cat or dog, followed by a number.
In the search and replace function, we can use "$1" to replace the match with any of the capturing groups (or e.g. "$1$1$2" to replace with several). Can we have this in the replace text results dialog?
So "(cat|dog)[0-9]" with replacement string "$1-$1" will have the following results:
cat1 -> 1-1
dog9 -> 9-9
It could save a lot of work... In this case 20 search and replaces can be done with one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.