Replace with wildcard

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Gerald

Replace with wildcard

Post by Gerald »

I have 200+ files where I need to replace strings that contain different numbers.
In one file, the strings is "Nca123 Map" but in the next file it is "Nca124 Map".
I would like to replace the "Nca123 Map" with "Select1 Map". Is this possible, if so, how? Sort of like, "Nca*** Map" to "Select1 Map". (Ignore all quotes in message) I have tried in vain to use regular expressions.
Roy Beatty

Re: Replace with wildcard

Post by Roy Beatty »

Hit the "Search" link above and look for "perl" for any messages dated after Sept, 2000.

Good luck,

Roy

PS: the Search url: http://www.textpad.com/forum/search.php?f=1
Mark Schnitzius

Re: Replace with wildcard

Post by Mark Schnitzius »

Should be easy enough... Just replace

Nca[0-9]* Map

with

Select1 Map

with the Regular Expression checkbox selected.
Post Reply