Switched from bracket delimiters to exceping the tilde in preg_quote