3v4l.org

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