This works fine, but I don't like it. Is there a way to say "match all non-word characters except \."?# get the file from the form and call it $file $file =~ s/(.*)\.(.*)$/$1/; $ext = $2; $file =~ s/\W//g; $file = "$fileName\.$ext";
In reply to Substitute \W but not \. by sstevens
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |