Fazer said:Hello,
I have a string which has a url (Begins with a http://) somewhere in
it. I want to detect such a url and just spit out the url. Since I
am very poor in regex, can someone show me how to do it using a few
examples?
Thanks a lot!
<snip>Don> http://kodos.sourceforge.net
If you're a Mac Python person there's also Dinu Gherman's excellent
RegexPlor:
http://starship.python.net/crew/gherman/RegexPlor.html
djw said:I would look here to improve your re-ex skills:
http://www.amk.ca/python/howto/regex/
Also, I find Kodos to be invaluable in developing and debugging regexs.
Highly recommended.
http://kodos.sourceforge.net
Of course, you could just use urlparse in the standard library...
Good luck,
Don
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.