<textarea cols="60" rows="5" name="emvideo_embed" id="edit-emvideo-embed" class="form-textarea resizable"><div id="media-youtube-1" class="media-youtube">
<div id="media-youtube-default-external-1">
<object type="application/x-shockwave-flash" height="350" width="425" data="http://www.youtube.com/v/xAIcgza6tJ8&amp;amp;rel=0&amp;amp;enablejsapi=1&amp;amp;playerapiid=ytplayer&amp;amp;fs=1" id="media-youtube-default-external-object-1">
<param name="movie" value="http://www.youtube.com/v/xAIcgza6tJ8&amp;amp;rel=0&amp;amp;enablejsapi=1&amp;amp;playerapiid=ytplayer&amp;amp;fs=1" />
<param name="allowScriptAccess" value="sameDomain"/>
<param name="quality" value="best"/>
<param name="allowFullScreen" value="true"/>
<param name="bgcolor" value="#FFFFFF"/>
<param name="scale" value="noScale"/>
<param name="salign" value="TL"/>
<param name="FlashVars" value="playerMode=embedded" />
<param name="wmode" value="transparent" />
<!-- Fallback content -->
<a href="http://www.youtube.com/watch?v=xAIcgza6tJ8"><img src="/sites/default/files/emvideo-youtube-xAIcgza6tJ8.jpg" alt="See video" title="See video" width="425" height="350" /></a> </object>
</div>
</div>
</textarea>
<script>
alert( document.getElementById("edit-emvideo-embed").value.match( /href\s*=\s*['"]([^'"]*)['"]/i )[1] );
alert( document.getElementById("edit-emvideo-embed").value.match( /src\s*=\s*['"]([^'"]*)['"]/i )[1] );
</script>