MINOR Remove extraneous call to preg_match

preg_match/preg_quote isn't useful here as far as I can see, and is expensive enough to be worth removing it.