Your delimiter is a quote '
, and there are some instances of it in the regex:
preg_match("'(.*)(.*)(.*)'si", "Some email", $matches);
^ ^
Escape them (i.e.: \'
) or change your delimiter.