How about removing anchors:
$pattern = "/\b[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+\.[a-zA-Z]{2,5}\b/";
1
solved PHP function preg_replace doesn’t work [closed]
How about removing anchors:
$pattern = "/\b[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+\.[a-zA-Z]{2,5}\b/";
1
solved PHP function preg_replace doesn’t work [closed]