Hi, I am spending a lot of time getting rid of non alphanumeric characters in strings like this:
$key=str_replace("-", "", $key);
$key=str_replace("_", "", $key);
$key=str_replace(";", "", $key);
$key=str_replace(".", "", $key);
$key=str_replace(",", "", $key);
$key=str_replace("|", "", $key);
$key=str_replace("?", "", $key);
$key=str_replace("#", "", $key);
Is there a regular expression that could do this for me ?
Thank you,
David