extract YouTube URL from random text in PHP

apolox

New Member
Im trying to extract a YouTube link from just random text. e.g.This is some random text and url is \[code\]http://www.youtube.com/watch?v=-d3RYW0YoEk&feature=channel\[/code\] and I want to pull this URL out of this text in PHP. Can't seem to figure it out. Found a solution in another language but don't know how to convert it.Thanks for the help.
 
Back
Top