Right now my regex is something like this:
[a-zA-Z0-9] but it does not include accented characters like I would want to. I would also like - \' , to be included.
A version without the exclusion rules:
^[-'a-zA-ZÀ-ÖØ-öø-ÿ]+$
Explanation
^ anchor asserts that we are at the beginning of the string [...] allows dash, apostrophe,
digits, letters, and chars in a wide accented range,+ matches that one or more times$ anchor asserts that we are at the end of the stringReference