Hi,
I need to clean a string and make sure it contains alpha numeric characters only. I've come up with the following code that for some reason fails
$string = 'aaa`bbb!!';
$string = preg_replace("#[^a-zA-z0-9]*#", "", $string);
echo $string;die;
The output I receive is aaa`bbb while I expect aaabbb. Could you please help me with this.