Find, replace, find in files, replace in files, regular expressions
When using "replace in files" option is it posible to make several replacements using "replace in files" option only once.
We want to replace:
THIS1 with THIS11
THIS2 with THIS22
Is it posibble to make this replacement(like in example) using replace in files only once and not twice as a normal replacement of this example would require.
- Posts: 1
- Joined: Mon Nov 07, 2005 12:00 am
Search String: THIS([0-9])
Replace String: THIS\1\1
This requires a Regular Expression search and replace with Unix-Style regular expressions active.
It can be done just as easily with UE-style regular expressions - read the Help.
It will replace THIS followed by any digit with THIS followed by two of the digits.
You can use your imagination to expand on this quite a bit.
- Posts: 212
- Joined: Tue Jul 27, 2004 11:00 pm
- Location: Spartanburg, South Carolina
Return to Find/Replace/Regular Expressions