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 ?

2

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.