How can I use Unicode-aware regular expressions in JavaScript?
For example, there should be something akin to \\w that can match any code-point in Lette
\\w
You can also use:
function myFunction() { var str = "xq234"; var allowChars = "^[a-zA-ZÀ-ÿ]+$"; var res = str.match(allowChars); if(!str.match(allowChars)){ res="true"; } else { res="false"; } document.getElementById("demo").innerHTML = res;