Extract URLs from Text?

DataDriven

Regular Member
Joined
Jun 26, 2009
Messages
203
Reaction score
32
Got a text file full of URL's but there are random bits of text between that prevent me from throwing them straight into a PR checking tool. Anyone know of a good (ideally free) tool for extracting URLs from text or a text file?
 
Search the web for a free reasonably powerful text editor and addtional filter utility if needed.

1) load text file. search and replace spaces and end-of-sentence characters (i.e. "." "!" "?") with line feeds;

2) filter file and output only those lines containing "http" or "www" or both.
 
Search the web for a free reasonably powerful text editor and addtional filter utility if needed.

1) load text file. search and replace spaces and end-of-sentence characters (i.e. "." "!" "?") with line feeds;

2) filter file and output only those lines containing "http" or "www" or both.

Would work out only there are words/phrases/sentences between some of the URLs. I need to isolate just the URLs amongst them.

Also tried out TextPipe, but couldn't work out how to apply filters, the different steps... very confusing for me, and not so practical to be using on a regaular basis. Appreciate the suggestion though.
 
Would work out only there are words/phrases/sentences between some of the URLs. I need to isolate just the URLs amongst them.

Also tried out TextPipe, but couldn't work out how to apply filters, the different steps... very confusing for me, and not so practical to be using on a regaular basis. Appreciate the suggestion though.

then u need to use SENuke that`ll do the job for you...
 
Seems like overkill to buy it simply for it's URL extracting capabilities.
 
How is the text formatted? Is it url's mixed with text or is it raw html?

There are solutions in PHP, but you would have to know what your txt file looks like.
 
Easiest solution is - Web Developer Addon for Firefox.

Go to "Information" > "View Link Information". It will open new tab with links on page only. All other text and images will be removed. That is if your links are inside of html file.
 
Last edited:
Easiest solution is - Web Developer Addon for Firefox.

Go to "Information" > "View Link Information". It will open new tab with links on page only. All other text and images will be removed. That is if your links are inside of html file.

Wow, now that was an easy option. Thanks for the tip. I had this add-on but didn't know it would do that. Sure will come in handy in the future too.

Thanks again,

Shez :)
 
Back
Top