Quote:
Originally Posted by CLF
Hi,
I was wondering if anyone could help me with this. Everything works perfectly fine - I run 4.2.0 PL3, but when the format is like this:
Code:
http://www.youtube.com/watch?feature=player_embedded&v=
it doesn't convert. I would be grateful if you could help me on this one.
Thank you in advance!!! 
|
This is the Regex I'm using:
Code:
/<a href=\"https?:\/\/(([a-zA-Z]{0,3}.youtube\.com\/watch\?(.+?&)?v=)|(youtu\.be\/))([a-zA-Z0-9-_]+)(.*?)?\"( target=\"_blank\")?>.*?<\/a>/s
Position Index:
5
Takes care of some of the "feature" parameters that crop up in URL's and also new lines that can happen inside a href tags when a link is copied from some browsers