You specified a regular expression that contained a newline before the end of the pattern.
Check the regular expression for a missing /.