Hi Jim,
Hello, (my name is John BTW)
rather than re-invent the wheel I would prefer if you could fix this regex I believe it covers all invalid characters one would encounter
s/[<sup>\w\&%'[EMAIL PROTECTED](\)&_\</sup>\+,\.=\[\]]//g;
Most of those characters are valid in DOS file names and all except '/' are valid in Unix file names. How do you define invalid?
You have '<', '>' and '_' listed twice and 's', 'u', 'a' and 'm' listed three times and 'p' listed five times because?
You are using '/' to delimit the regexp and string yet you have an unescaped '/' in the character class which is an error and will not compile.
Maybe it would be better if you tell us what characters you consider to be *VALID*. :-)
John -- use Perl; program fulfillment
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>