0

Hi Guys i have an issue with one of my regular expressions, the regular expression itself functions but i have an error appear in FireFox developer

Unable to check because the pattern is not a valid regexp: invalid identity escape in regular expression

i am aware of identity escapes but not aware of how to apply it to this regex below

^(((\+44\s?\d{4}|\(?0\d{4}\)?)\s?\d{3}\s?\d{3})|((\+44\s?\d{4}|\(?0\d{4}\)?)\s?\d{5})|((\+44\s?\d{3}|\(?0\d{3}\)?)\s?\d{3}\s?\d{4})|((\+44\s?\d{2}|\(?0\d{2}\)?)\s?\d{4}\s?\d{4}))(\s?\#(\d{4}|\d{3}))?$
Cid
  • 14,968
  • 4
  • 30
  • 45
Dean Beckerton
  • 196
  • 1
  • 9

0 Answers0