in reply to removing special characters
As an example, to keep only upper case letters and numbers, you might do: $scalar =~ s/[^A-Z0-9]+//g; which removes from the string every character that isn't in the A-Z or 0-9 range.
--
$you = new YOU;
honk() if $you->love(perl)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: (nrd) removing special characters
by newrisedesigns (Curate) on Feb 13, 2003 at 20:37 UTC |