This:
public static void main(String[] args) {
System.out.println(new Perl5Util().match(/[:digit:]/, 1));
System.out.println(new Perl5Util().match(/[0-9]/, 1));
}
produces:
false
true
on System.out. It's a bug, no?
thnx,
adam
Adam Shackleford
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,
The expression:
new Perl5Util().match(/[[:alpha:]]/, a)
returns false with ORO 2.0.3, whereas:
new Perl5Util().match(/[[:alnum:]]/, a)
returns true. I hope this isn't another newbie mistake...
thanks,
adam