Removing numbers from a list of URLS
Posted: Tue Oct 19, 2010 9:55 pm
Find:
^\d+ :
Replace: (leave empty)
^_____ You want to "match" the start of a line only
\d ___ Matches a digit 0 to 9
+ ____ requires at least one occurrence, but accepts each (consecutive as well)
\d+ __ So this matches complete (integer) numbers
_____ there is a space character
: ____ before and after the colon
_____ don't forget the second space character
You might as well use a shortcut.
Find:
^[^h]+
Replace: (leave empty)
[] ____ groups characters to match
[^] ___ groups characters not to match
[^h] __ accept any character that is not h
[^h]+ _ accept any string of consecutive characters that are not h, i.e. accept anything up to the first h, or just anything if there is no h at all
^\d+ :
Replace: (leave empty)
^_____ You want to "match" the start of a line only
\d ___ Matches a digit 0 to 9
+ ____ requires at least one occurrence, but accepts each (consecutive as well)
\d+ __ So this matches complete (integer) numbers
_____ there is a space character
: ____ before and after the colon
_____ don't forget the second space character
You might as well use a shortcut.
Find:
^[^h]+
Replace: (leave empty)
[] ____ groups characters to match
[^] ___ groups characters not to match
[^h] __ accept any character that is not h
[^h]+ _ accept any string of consecutive characters that are not h, i.e. accept anything up to the first h, or just anything if there is no h at all