I recently created a regular expression for my PHP code that allows only letters (including special characters plus spaces), but now I have a problem converting it (?) To a JavaScript compatible regular expression .: /^[\s\p{L}]+$/u , the problem is the /u modifier at the end of the regular expression pattern, since JavaScript does not allow such a flag.
How can I rewrite this so that it will work in JavaScript too?
Is there anything to allow only Polish characters: Ł , Ą, Ś , Ć , ...
javascript php regex unicode
Scott
source share