I need to remove punctuations except parentheses from the string. I have come up with following:
$clean = preg_replace ( "/[^\.\,\-\_\'\"\@\?\!\:\$ a-zA-Z0-9()]/", "", $maybedirty );
That seemed to work OK, until I realized that I need to let through some utf-8 encoded characters (East European). Although I found a number of suggestions of possible solutions, I so far failed to make them work (or to understand them, or both). So question is how can I modify the regex to allow for utf-8 encoded characters.