View Single Post
Old 11-17-2010, 06:24 PM   #147
BigV
Goon Squad Leader
 
Join Date: Nov 2004
Location: Seattle
Posts: 27,063
Stuff I don't know, Episode #12,559: regex

Perhaps Pie will swoop in here and save the day, or anyone else whose brain is bigger and prettier than mine...

I have a long text file that contains what are essentially footers/page numbers. I hate them. I've processed the ever living f*ck out of this file, and I can't find a way to say: Please replace all instances of ###<CRLF> with nothing. That is the "page" number which runs from one to three digits, followed by a carriage return. I just want to take them out. Of course the file is full of other numeric data I must conserve. However, there are no lines that have only numbers on them except these ones I want removed.

I have a text editor that can search for extended characters, so the \r\n is working... (I think)... but I don't know how to say one or two or three digits followed by a CR should be replaced with nothing(deleted).

I have tried
Code:
+([0-9][0-9][0-9]}\r\n
failed.

Please help.
__________________
Be Just and Fear Not.
BigV is offline   Reply With Quote