fork download
  1. <?php
  2. $subject= '{"(\"(http://w...content-available-to-author-only...r.org/rss.xml)\")","(\"(http://w...content-available-to-author-only...y.org/index.php?format=feed&type=rss)\")","(\"(\"\"http://w...content-available-to-author-only...j.gov/dep/newsrel/newsrel.rss \"\")\")"}';
  3.  
  4. preg_match_all('/\b(?:(?:https?):\/\/|www\.)[-A-Z0-9+&@#\/%?=~_|$!:,.;]*[-A-Z0-9+&@#\/%=~_|$]/ix', $subject, $result, PREG_PATTERN_ORDER);
  5.  
  6. print_r($result[0]);
Success #stdin #stdout 0.03s 52480KB
stdin
Standard input is empty
stdout
Array
(
    [0] => http://w...content-available-to-author-only...r.org/rss.xml
    [1] => http://w...content-available-to-author-only...y.org/index.php?format=feed&type=rss
    [2] => http://w...content-available-to-author-only...j.gov/dep/newsrel/newsrel.rss
)