3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php preg_match_all("/(?<!\\\\)%[^\n]*/", "To jest % komentarz\nA to\\% ju┼╝ nie\nA to znowu %tak", $m); print_R($m);
Output for 4.3.0 - 7.1.0
Array ( [0] => Array ( [0] => % komentarz [1] => %tak ) )