how can i substitute, or remove anything that's not an alphanumerical 
character in a string?

i.e:
$string = "AbCdEF1246Hfn \n";
$string =~ s/[^a-z][^A-Z][^0-9]//g;

though to me, that would say:
(replace anything that's not a lower case letter as the first char) then
(replace anything that's not an upper case letter as the second char) then
(rpelace anything that's not a number as the third char).

or is this right?

thanks, dan 



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to