fork download
  1. <?php
  2. preg_match_all("/[a-z]+[:.].*?(?=\s|$)/", 'google.com some text example.com', $matches);
  3. print_r($matches[0]);
Success #stdin #stdout 0.02s 24144KB
stdin
Standard input is empty
stdout
Array
(
    [0] => google.com
    [1] => example.com
)