![]() |
|
Home Base A starting point, and place for threads don't seem to belong anywhere else |
![]() |
|
Thread Tools | Display Modes |
|
![]() |
#1 |
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 Please help.
__________________
Be Just and Fear Not. |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|