Jenda Krynicky schreef:
> Dr.Ruud:

>> - be careful when to use \d, that set can contain more than 100
>> characters.
>
> Beg your pardon?

I write [0-9] when I mean [0-9]. Many Perl developers keep thinking that
\d and [0-9] are equivalent.

Check out http://www.xs4all.nl/~rvtol/perl/unicount.pl

On a FreeBSD system here it reports 268 characters for \d.

\p{IsNumber} includes all numerical characters, there are 612.

-- 
Affijn, Ruud

"Gewoon is een tijger."


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


Reply via email to