• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

easy editing text file

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

rommie

Member
Joined
Apr 7, 2009
I want to edit this: http://pastebin.com/H1RW0R7z so that only the "summon" lines are kept. I tried to look in word help about wildcards, but couldn't find anything. Is it possible to do this without having to manually delete everything?
 
Maybe open in Excel then figure out how to create an Excel macro that deletes every cell that does not start with Summon?
 
Using Notepad++, press Ctrl+F and click on the Mark tab.
In the Find what box, type ^Summon
Check off Bookmark line
Make sure search mode is set to Regular expression
Click on Mark All
notepad1.png

Click on the search menu at the top
Click on Bookmark
Click on Remove unmarked lines
notepad2.png
 
Thank you ebug122.


Note to self:
Notepad++
http://notepad-plus-plus.org/download/

To remove all lines which do not contain YourSearchTerm:

Search > Find > Mark TAB > in the Find what box, type ^YourSearchTerm
CHECK: Bookmark line
SELECT: Regular expression
> Mark All (next to your search term) > OK > Close

Search Menu > Bookmark > Remove Unmarked Lines
 
Using Notepad++, press Ctrl+F and click on the Mark tab.
In the Find what box, type ^Summon
Check off Bookmark line
Make sure search mode is set to Regular expression
Click on Mark All
View attachment 113983

Click on the search menu at the top
Click on Bookmark
Click on Remove unmarked lines
View attachment 113984

Thanks. Just so I don't start a separate thread: In word, how do I have two separate columns of text? In this example, wanting half of the list on one side of the page, the other half on the other side, rather than it taking up two pages when printed.
 
Thank you ebug122.


Note to self:
Notepad++
http://notepad-plus-plus.org/download/

To remove all lines which do not contain YourSearchTerm:

Search > Find > Mark TAB > in the Find what box, type ^YourSearchTerm
CHECK: Bookmark line
SELECT: Regular expression
> Mark All (next to your search term) > OK > Close

Search Menu > Bookmark > Remove Unmarked Lines
Note that that caret symbol (^) means at the beginning of when it comes to regular expressions. So ^YourSearchTerm will only find lines that begin with YourSearchTerm.

Thanks. Just so I don't start a separate thread: In word, how do I have two separate columns of text? In this example, wanting half of the list on one side of the page, the other half on the other side, rather than it taking up two pages when printed.
Which version of Word do you have? 2003, 2007, 2010?
 
Back