Eek! I deserve a thousand lashes with my copy of "Mastering Regular
Expressions" for that one!

I think RegExp (which I'm switching from) allows inline [:posix:], which is
definitely wrong.

thanks,

a

> -----Original Message-----
> From: Daniel F. Savarese [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 12, 2001 1:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Posix char classes broken
>
>
>
> > System.out.println(new Perl5Util().match("/[:digit:]/", "1"));
>
> I think what you want is "[[:digit:]]" The POSIX class needs to appear
> inside of a character class.
>
> daniel
>
>

Reply via email to