0

In the Firefox console (no message for Chrome). I got this error :

Unable to check < input pattern = '[^? <> |?!; = \,;:] *' > Because the pattern is not a valid regular expression: invalid identity escape in regular expression

I checked here but it does not seem to be the same case.

I checked here but in my case I have to keep the backslash in my pattern to avoid an antislash insert from the users.

I checked my pattern on https://regex101.com/ and it seem to be all right.

That happens for [^?<>|?!;=\,;:]* and [^?<>|?;=\]*.

Someone has got an idea ?

J.BizMai
  • 2,621
  • 3
  • 25
  • 49

1 Answers1

0

The problem for Firefox is the backslash. To resolve this problem you must escape the backslash with another one like this : [^<>|?!=\\,;:]*

J.BizMai
  • 2,621
  • 3
  • 25
  • 49