Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 04-10-2007, 07:59 AM   #1 (permalink)
txd
Addict
 
text processing

Hopefully someone can point me in the right direction.

I have a large text document (1.7mb) in size and I want to edit a recurring line of text in it so that it is blank

The line of text is standard bar the last few characters which represent the page number.

For example, the text would read "thesis title n" where n can be anything from 1 to 700. I would like to change the whole line including the page number to a blank.

Can any one suggest a way to do this. I have access to Linux/OSX and Windows so any can be used for a solution :-)
txd is offline  
Old 04-10-2007, 08:20 AM   #2 (permalink)
Devils Cabana Boy
 
Dilbert1234567's Avatar
 
Location: Central Coast CA
you want to use regular expressions, however i suck at regular expressions.
__________________
Donate Blood!

"Love is not finding the perfect person, but learning to see an imperfect person perfectly." -Sam Keen
Dilbert1234567 is offline  
Old 04-10-2007, 09:08 AM   #3 (permalink)
Lover - Protector - Teacher
 
Jinn's Avatar
 
Location: Seattle, WA
Textpad for Windows will be your new hero. It's the best text editor I've ever used; regular expression search and replace, syntax highlighting for all the major languages, force upper, force lower, macro support for things like java compiling, sentence case, auto code indenting, Windows shell integration... I fuckin' love it.

That said, download Textpad at www.textpad.com and open your file with it.

F8 for replace, check "Regular expression", put "Thesis Title *[0-9]*" in the Find Box, leave Replace empty, and click Replace / Replace All.

That will blank the line. If you want to blank the line and also remove it (move everything up one line) use "Thesis Title *[0-9]*\n" for the Find field.
__________________
"I'm typing on a computer of science, which is being sent by science wires to a little science server where you can access it. I'm not typing on a computer of philosophy or religion or whatever other thing you think can be used to understand the universe because they're a poor substitute in the role of understanding the universe which exists independent from ourselves." - Willravel
Jinn is offline  
Old 04-10-2007, 12:55 PM   #4 (permalink)
txd
Addict
 
Quote:
Originally Posted by JinnKai
Textpad for Windows will be your new hero.
Excellent, I actually use Textpad my self but never realised the search and replace was that powerful.
txd is offline  
 

Tags
processing, text


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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 09:39 PM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62