Friday, 15 May 2015

regex - Remove everything before "http://..." in string -



regex - Remove everything before "http://..." in string -

i have txt line these ones:

155the lastly goodnight - remain beautiful capitolmusic http://www.youtube.com/watch?v=h5c2itcslbe 156sara evans - real fine place start saraevansvevo http://www.youtube.com/watch?v=irdcbkxb91i 157simple minds - see lights simplemindsvevo http://www.youtube.com/watch?v=mmktmaak710

i want remove before "http://..." in order reach result:

http://www.youtube.com/watch?v=h5c2itcslbe http://www.youtube.com/watch?v=irdcbkxb91i http://www.youtube.com/watch?v=mmktmaak710

can help me?

.*(?=http://)

matches before lastly http:// in line.

regex

No comments:

Post a Comment