The Cellar  

Go Back   The Cellar > Main > Home Base
FAQ Community Calendar Today's Posts Search

Home Base A starting point, and place for threads don't seem to belong anywhere else

Reply
 
Thread Tools Display Modes
Old 11-17-2010, 06:24 PM   #1
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
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 07:03 PM.


Powered by: vBulletin Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.