I have this regexp constructed pattern I’m passing a string variable to. This works perfectly in Chrome, but won’t work in Safari. Is there a way I might be able to convert this code to be compatible across browsers? Thank you! Answer You can use The (?!Bw) negative lookahead requires a word boundary position if the next char is a