Toby, Please review your decision to use Regexp. As I have said before in this forum, at this time Regexp is not mature enough and has some fundamental problems. Look at regex4j from IBM (my favorite), Jakarta ORO (second favorite) and GNU regex.
I have performed some simple comparative tests and regex4j comes out best. Once I get all my JUnit tests converterted to JDK1.4 (assert is now a reserved word!) I shall compare with JDK1.4's regex. Roger > -----Original Message----- > From: [EMAIL PROTECTED] > Sent: 31 October 2001 09:43 > To: [EMAIL PROTECTED] > Subject: AW: Wrong Regexp or Bug in implementation of negated > character cl asse s? > > Hi Roger, > > >Toby, > > > >If I understand your JUnit tests, you want to have the first character > NOT > >in the set 'a-zA-Z0-9?&'. You have made this first character optionally > NOT > >in the set 'a-zA-Z0-9?&'. Try using "^[^a-zA-Z0-9?&]" (no ?) as the RE. > It > >then works for me! > > > >Roger > > Argh! You are right! I reviewed my perl code, too, and corrected the regex > to "^[^a-zA-Z0-9?&]$". > That, is really what I want to see as result. > Sorry for my foolish mail. BTW, Thx for you smart and small tool. I guess > we > will use this > even if JDK 1.4 offers RegEx, because your tool will run on any JDK > version. > ;-) > > Thx for your work. > > Bye > > Toby > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> Legal Disclaimer:- Internet communications are not secure and therefore the Barclays Group does not accept legal responsibility for the contents of this message. Although the Barclays Group operates anti-virus programmes, it does not accept responsibility for any damage whatsoever that is caused by viruses being passed. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Barclays Group. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>