title: php preg_match -> save matched value in variable?
body: <p>my <code>$content</code> variable stores a youtube video link.</p>
  
  <pre><code>$youtubeurl = "/(\[TRACK=)((http|https)(\:\/\/)(www|it|co\.uk|ie|br|pl|jp|fr|es|nl|de)(\.youtube\.)(com|it|co\.uk|ie|br|pl|jp|fr|es|nl|de)([a-zA-Z0-9\-\.\/\?_=&amp;;]*))(\])/si"; 
  
  
  $video = preg_match($youtubeurl, $content , $found);
  print_r($video); // 1
  </code></pre>
  
  <p>How can I store the value of the matched string in a variable? Now if I <code>print_r($video)</code> I'm just getting printed a <code>1</code> which means it's found. However i need to hold the found string in a variable. How can i do this?</p>
  
  <p>Thank you</p>