I'm trying to remove everything that is not alphanumeric, or is a space with _:
$filename = preg_replace("([^a-zA-Z0-9]|^\s)", "_", $filename);
What am I doing wrong here, it doesn't seem to work. I've tried several regex combinations...(and I'm generally not very bright).