title: Get Youtube Video ID from html code with PHP
body: <p>I want to get all only youtube video ID from html code</p>
  
  <p>look the (or multiple) object/embed code for youtube video</p>
  
  <p>// html from database</p>
  
  <pre><code>    &lt;p&gt;loremm ipsum dolor sit amet enot
      &lt;a href="link" attribute=""blah blah blah"&gt;anchor link&lt;/a&gt;
      &lt;/p&gt;
  
      &lt;object width="425" height="344"&gt;
          &lt;param name="movie" value="http://www.youtube.com/v/Ou5eVl5eqtg&amp;hl=es_ES&amp;fs=1&amp;"&gt;&lt;/param&gt;
          &lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;
          &lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;
          &lt;embed src="http://www.youtube.com/v/Ou5eVl5eqtg&amp;hl=es_ES&amp;fs=1&amp;"
      type="application/x-shockwave-flash"
      allowscriptaccess="always"
      allowfullscreen="true"
      width="425"
      height="344"&gt;
      &lt;/embed&gt;
          &lt;/object&gt;
  
      &lt;image src="path/to/image.ext" &gt;
      &lt;p&gt;lorem ipsum dolor sit amet... blah&lt;/p&gt;
      &lt;p&gt;lorem ipsum dolor sit amet... blah&lt;/p&gt;
  
      &lt;object width="425" height="344"&gt;
          &lt;param name="movie" value="http://www.youtube.com/v/Ou5eVl5eqtg&amp;hl=es_ES&amp;fs=1&amp;"&gt;&lt;/param&gt;
          &lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;
          &lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;
          &lt;embed src="http://www.youtube.com/v/Ou5eVl5eqtg&amp;hl=es_ES&amp;fs=1&amp;"
      type="application/x-shockwave-flash"
      allowscriptaccess="always"
      allowfullscreen="true"
      width="425"
      height="344"&gt;
      &lt;/embed&gt;
          &lt;/object&gt;
  &lt;p&gt;blah&lt;/p&gt;
  blah&lt;br/&gt;
  blah&lt;br/&gt;
  blah&lt;br/&gt;
  </code></pre>