- Output for 7.3.24 - 7.3.33, 7.4.12 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.21, 8.3.0 - 8.3.9
- Warning: preg_replace(): Compilation failed: (*VERB) not recognized or malformed at offset 29 in /in/apkf2 on line 15 NULL
<?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));