Posted By

crypticsoft on 03/04/11


Tagged

href pregmatch


Versions (?)

Check for href in string


 / Published in: PHP
 

  1. if (preg_match('/href="([^"]*)"/i', $results , $regs))
  2. {
  3. $url = $regs[1];
  4. } else {
  5. $url = "No URL Found";
  6. }

Report this snippet  

You need to login to post a comment.