There are numerous regex builder tools, you can use any one.
try this:
Regex Builder[
^]
They help a lot in avoiding such errors!
BTW: It doesn't look like error reported by you is becuase of this Regex. It's probably because of the way you must have used it. regex looks fine - No error in it.