Answer the question
In order to leave comments, you need to log in
What's the regex problem in Firefox?
There is a regular expression that clears the line:
It works in chrome, but in Firefox I get an error:'hello World'.replace(/[^\p{L}]/ug, '')
SyntaxError: invalid identity escape in regular expression
Answer the question
In order to leave comments, you need to log in
Firefox does not yet know such expressions.
https://bugzilla.mozilla.org/show_bug.cgi?id=1361876
Use some transpiler
https://github.com/tc39/proposal-regexp-unicode-pr...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question