consistency: replace \preg_match with \str_replace