I’d like to give my users the option to not only fill in letters and numbers, but also “special” letters like the “á”, “é”, etc. However, I do not want them to be able to us
you can try with this regex:
$reg = '~[^\\pL\d]+~u';
which catch also accented characters