PHP Preg Match Space ou Start of String
/\b(stackoverflow)\b/
Friendly Hawk
/\b(stackoverflow)\b/
$subject = "E:[email protected] I:100955";
$pattern = "/^E:(?<contact>\w+) I:(?<id>\d+)$/";
if (preg_match($pattern, $subject,$matches)) {
print_r($matches);
}