I have the following regex:
/^([\p{L}])*[\p{L},.'-]+$/u
it is a unicode version, which I use for international firstnames.
When I try this:
const value = "Hello"
const criteria = value.match(/^([\p{L}])*[\p{L},.'-]+$/u);
console.log(criteria);
It always returns null
, no matter which value the variable has.
I tried it in Regex Debugger / Tester on a Browser and it worked there.