I'm having a little trouble creating a definition for youtube HIGH DEFINITION (fmt=22, not fmt=18)
HD:
http://www.youtube.com/watch?fmt=22&v=LQwC0t3rFAQ
SD:
http://www.youtube.com/watch?v=LQwC0t3rFAQ
By adding
fmt=22& to the URL, you can view 1280x720 versions of the videos in flash. I want to be able to let users add this code to their URL, and have the system read it no problem...
This is what I have tried:
HTML Code:
[http://]*[a-z]*?[\.]?youtube\.[a-z]*?/watch\?fmt=22\&v=([A-Z0-9._%-]*)[&\w;=\+_\-]*
HTML Code:
<object width="670" height="400">
<param name="movie" value="http://www.youtube.com/v/$p1&hl=en&fs=1&rel=0&ap=%2526fmt%3D22"></param>
<param name="allowFullScreen" value="true"></param>
<embed src="http://www.youtube.com/v/$p1&hl=en&fs=1&rel=0&ap=%2526fmt%3D22" type="application/x-shockwave-flash" allowfullscreen="true" width="670" height="400" wmode="transparent"></embed></object>
It APPEARS to work, using RegexBuddy... AME seems to read in and extract the destination data as well (it adds the title to the video) as in:
HTML Code:
[url="http://www.youtube.com/watch?fmt=22&v=LQwC0t3rFAQ"]YouTube - SoulcaliburIV: 2008-SEP-06 W1 SEB VS Jaxel[/url]
However, it does not print out the Replacement text. It prints out the URL to the video (not in a link, just plain text)... but nothing else. Why is the replacement not working?