Can you help me? I'm trying to make a PHP Regex to accept only: A-Z, a-z, 0-9, (, ), ! and accented words(á,é,í,ó,ú and Á,É,Í,Ó,Ú) to filter a list.
I tried everyting and searched so much, and I'm not getting succcess... What should I do?
@edit:
if (!preg_match("/^[\p{L}-]*$/u", $line)){
I already tried using this from this thread but didn't worked.
What I'm trying to do? Accept only words that I want to filter this list: List
@edit2: Already tried convertind to UTF8, using iconv, mb_convert_encoding, etc...