[Fixed]advanced replacement
Posted: Tue Sep 16, 2008 2:55 am
Hi All,
i'm having some trouble to find how i could instruct Textpad to make a couple of replacements in a file that i have got.
for the moment, i have a big file (180 000 lines) that is actually a list of tags followed by some information.
it looks like this
and what i would like to do is to replace every line that begin by 'HOP' then a couple of lowercase (and sometimes the caracter ' and a space eg: ab; ab'; ab cd) to be splitted into two lines, one with a new tag and the first set of lowercase, and the second one with the old tag and the rest of the data.
to have something that looks like this instead:
any idea how i could do that?
thanks a lot!
i'm having some trouble to find how i could instruct Textpad to make a couple of replacements in a file that i have got.
for the moment, i have a big file (180 000 lines) that is actually a list of tags followed by some information.
it looks like this
Code: Select all
NAME Bestycame
ID 32553
HO1 abcdef' MNOPQ xy QWERTY
to have something that looks like this instead:
Code: Select all
NAME Bestycame
ID 32553
HO0 abcdef'
HO1 MNOPQ xy QWERTY
thanks a lot!