3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $re = '/<br( \/|)>((\n|\r|\r\n)[ ]*(*|-|\x8226) )?/'; $str = 'det...ails...<br /> eleveur d\'huitres,<br /> faiseur de miracle,<br /> etc...<br /> - marchand de sable.<br /> • toto<br /> • titi * azer'; // Print the entire match result var_dump(preg_replace($re,'<br /> - ',$str));
Output for 5.6.30
Warning: preg_replace(): Compilation failed: nothing to repeat at offset 28 in /in/apkf2 on line 15 NULL