Advertisement
nabikaz

Untitled

Jun 15th, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. $content = <<<EOF
  2. <a href="http://test.com/666_X.jpg"></a><a href="http://test.com/1001_A.jpg"></a><a href="http://test.com/1002_A.jpg"></a><a href="http://test.com/1003_A.jpg"></a>
  3. EOF;
  4.  
  5. echo "<PRE>";
  6. preg_match_all("/<a href=\"http:\/\/test.com\/(.*?)_A\.jpg\"><\/a>/", $content, $matches);
  7. print_r($matches);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement