I have never worked with regular expressions. And now, at my job, I need a regular expression that accepts a string with:
(It is a full name that can have so many variants and many languages)
I am reading and studying documentation now, but I am stuck.
You could use something like this:
^[0-9\wÀ-ž\s\-]+$
0-9
for numbers
\w
for word characters
À-ž
for the special characters
\s
for spaces
\-
for the -
wrapping this inside []
makes an class, which maches everything inside and putting a +
after the class, says at least one element of this character class.