3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = 'bla bla </container> e <container style="autore"> bla bla bla'; $value = preg_replace('#.*>\s?([a-z]+)\s?<container style="autore">.*#m', 'X\1X', $string); echo $value;
Output for 4.3.0 - 7.1.0
bla bla XeX bla bla bla