Search & Replace: Wildcards - Examples for Learning
Posted: Wed Oct 15, 2008 7:35 pm
Where can attempt to learn S & R using wildcards & RegExps from concrete examples ? WildEdit Help has lots of stuff on RegExp etc but I cant find any examples of S & R using Wildcards ?
Nothing readily obvious on the recent Forum history either
PROBLEM
I want to extend a generic text line that is similar across seperate ASCCI text files (*.TAB) ie replace
Find What:"NETXadj_c pctave Latest Run1"
with
Replace with:"NETXadj_c pctave Latest Base NETXadj_c pctave Run1 Base"
across 100 different (2 or 3 character) suffix types (eg "_c", "_u", "_j", "_sk", "_no" etc)
If I specify (NB speech marks absent when specifying in WildEdit):
Find What:"NETXadj_.* pctave Latest Run1"
with
Replace with:"NETXadj_ pctave Latest Base NETXadj_ pctave Run1 Base"
[ with RegExp boxed ticked and "In Files Matching: *.TAB" ]
it doesnt seem to work - how exactly do I specify the "Replace with:" string ??
OR more simply, say I just wanted to replace:
Find What: NETXadj_c pctave Latest Run1
with
Replace with: NETXadj_c pctave Latest Base
[ with RegExp boxed ticked and "In Files Matching: *.TAB" ]
across 100 different (2 or 3 character) suffix types (eg "_c", "_u", "_j", "_sk", "_no" etc)
how would I specify this with RegExp (or Replacement Format ?)
(NB In DOS Wildcards I would use:
"NETXadj_? pctave Latest Run1" => "NETXadj_? pctave Latest Base"
AND
"NETXadj_?? pctave Latest Run1" => "NETXadj_?? pctave Latest Base" )
Nothing readily obvious on the recent Forum history either
PROBLEM
I want to extend a generic text line that is similar across seperate ASCCI text files (*.TAB) ie replace
Find What:"NETXadj_c pctave Latest Run1"
with
Replace with:"NETXadj_c pctave Latest Base NETXadj_c pctave Run1 Base"
across 100 different (2 or 3 character) suffix types (eg "_c", "_u", "_j", "_sk", "_no" etc)
If I specify (NB speech marks absent when specifying in WildEdit):
Find What:"NETXadj_.* pctave Latest Run1"
with
Replace with:"NETXadj_ pctave Latest Base NETXadj_ pctave Run1 Base"
[ with RegExp boxed ticked and "In Files Matching: *.TAB" ]
it doesnt seem to work - how exactly do I specify the "Replace with:" string ??
OR more simply, say I just wanted to replace:
Find What: NETXadj_c pctave Latest Run1
with
Replace with: NETXadj_c pctave Latest Base
[ with RegExp boxed ticked and "In Files Matching: *.TAB" ]
across 100 different (2 or 3 character) suffix types (eg "_c", "_u", "_j", "_sk", "_no" etc)
how would I specify this with RegExp (or Replacement Format ?)
(NB In DOS Wildcards I would use:
"NETXadj_? pctave Latest Run1" => "NETXadj_? pctave Latest Base"
AND
"NETXadj_?? pctave Latest Run1" => "NETXadj_?? pctave Latest Base" )