On Aug 31, agc said:
>so I would like to know wich woud be the reg exp for a case like that
>where are examples? fro a beguinner? can any one give me a hand with
>this? cheers
There are several Perl documents on regexes:
perlrequick
perlretut
perlre
Looking at them in that order sh
s@Perl. Org" <[EMAIL PROTECTED]>
Sent: Thursday, August 16, 2001 1:59 PM
Subject: RE: Regular expresions
> The \D switch takes out everything that IS a number. Was the original
> question not that this person wanted to take out everything was IS NOT a
> number?
>
> -O
To: '[EMAIL PROTECTED]'
Subject: RE: Regular expresions
i think the /D switch is best...
$str = 'YD*&h9dhiudhc9s9123abc&&%$&()_#';
print $str, "\n";
$str =~ s/\D//g;
print $str, "\n";
> -Origin