Find, replace, find in files, replace in files, regular expressions
by zdvolode » Sun Dec 11, 2005 11:47 pm
When using "replace in files" option is it posible to make several replacements using "replace in files" option only once.
Example:
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.
Thank You
-

zdvolode
- Newbie
-
- Posts: 1
- Joined: Mon Nov 07, 2005 12:00 am
by mrainey56 » Mon Dec 12, 2005 6:39 pm
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.
-

mrainey56
- Master

-
- Posts: 212
- Joined: Tue Jul 27, 2004 11:00 pm
- Location: Spartanburg, South Carolina
-
Return to Find/Replace/Regular Expressions