title: regex pattern to match a url in php
body: <p>i need help with this regex pattern. I have tried many different patterns but none return anything. I always get an empty array. The following patterns return no results.</p>
  
  <pre><code>//test 1    
  $regex = '/linkDestUrl = \'(.*)\'/';
  
  //test 2
  $regex = '@^(?:\s)*(linkDestUrl = \'(.*)\');@mi';
  </code></pre>
  
  <p>to match this</p>
  
  <pre><code>linkDestUrl = 'http://www.google.com';
  </code></pre>