Posix char classes broken

2001-06-12 Thread Adam Shackleford
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

RE: Posix char classes broken

2001-06-12 Thread 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,

new Perl5Util().match(/[[:alpha:]]/, a) = false

2001-06-12 Thread Adam Shackleford
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