Regex Always Matching

You need either one or three /s, depending on whether regular expressions are processed in extended mode by default.