3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set("pcre.jit", "0"); $regex = '/(^|[\n\s\>\\";]+)([^ \,"\t\n\r<>;]+\.[^ \,\"\t\n\r<]+)/iu'; $text = 'This is a normal text. http://vg.no, VG'; preg_match_all($regex, $text, $matches); print_r($matches); $text = 'This is normal text. http://vg.no, VG'; preg_match_all($regex, $text, $matches); print_r($matches);

preferences:
53.91 ms | 402 KiB | 5 Q