3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pattern = "/{{ city }}/{{ county }}"; $pattern = preg_replace('#{{ (.*) }}#', '(.*)', $pattern); echo $pattern; ?>
based on pNctD
Output for 5.5.0 - 7.2.0
/(.*)