Well, this will work so long as the URL is:
https://www.youtube.com/watch?v=xxxxxxxxxx

It's when you add extra trash in the URL that it'll die; you could have two and have the second filter out the trash, or you could have a better regex drawn up to filter the trash...

Custom Tag
Code
video:youtube

Description
Code
YouTube Video

User Prompt
Code
YouTube URL; eg: https://www.youtube.com/watch?v=xxxxxxxxxx

Matching Regex
Code
(.*)://(.*).youtube.com/watch\?v=(.*)

Markup
Code
<iframe width="425" height="350" src="http://www.youtube.com/embed/amKJZpxXhkI?list=UUa6vGFO9ty8v5KZJXQxdhaw" frameborder="0" allowfullscreen></iframe>


A matching regex to filter out trash for a second code would be:
Code
(.*)://(.*).youtube.com/watch\?v=(.*)&(.*)


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!