Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a list like this:

1 http://
2 http://
3 http://
4 http://
5 http://

I would like to remove 1,2,3,4,5 without doing this manually for each line. The only tool I am using is notepad in a bare Windows setup.

How can i remove this in Notepad or Microsoft Word?

share|improve this question
add comment

4 Answers 4

In Microsoft Word, use Replace (CtrlH) with:

<[0-9]@ (http)

replace with:

\1

Make sure "Use wildcards" is enabled.

share|improve this answer
    
+1 I use Linux so much I'd never bothered to try text edits in Office/Windows. –  Tog Jan 23 '11 at 10:08
    
Oh, nice to know you can do more than just *. –  Tom Wijsman Jan 23 '11 at 15:08
1  
Holy cow, you can do backreferences in Word??! Where is this documented? –  Gregg Leventhal Jul 17 '13 at 21:09
2  
@Gregg: Here. –  grawity Jul 17 '13 at 21:30
add comment

Using Notepad++ text editor you can use Column mode selection. Press Alt before select the text you want to delete an it allows you select a column (instead the complete rows of the selection) Also Notepad++ has a portable version and is not necessary to install anything to do this.

share|improve this answer
add comment

i used excel 2013. when you paste in excel, first column would be filled with number and remaining content in second column. then you can just copy second column. but you will be left with extra spaces between each lines. then you can go to find and go to special, select blank rows and delete those rows.

share|improve this answer
    
This does not work for me. –  imtheman May 5 at 3:42
add comment

Just to add to the options... you can also select as a column in MS Word by holding ALT+SHIFT and dragging.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.