We recently transferred our hosting and all of the sudden errors came up to our preg_match scripts.
$lines = explode("\n",$email); //Email message by email forwarding
if(preg_match("/^(.*)/ GMT(.*)/ <reply@pipe.mydomain.com>:/",$lines[$i],$matches)){
$message .= str_replace($matches[1],"",$lines[$i]);
}
It returns unknown modifier 'G' after removing G, it shows unknown modifier 'M' error.
Also tried preg_match_all() still same error shows up.