could someone please write down the pattern i need to replace all chars that are NOT letters or numbers in a filename? (a-zA-Z0-9)
do not worry about the dot before the extension - i just deal with the actual fileNAME - the extension gets appended afterwards.
i want to replace all characters that are NOT letters or digits with either underscores or just delete them... ie - i need $pattern for this:
$newFilename = eregi_replace("$pattern", "_", $oldFilename);
so "can't stop this thing we started!" becomes "can_t_stop this_thing_we_started_"
thanks a lot in advance!!!
sid