You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-user@jakarta.apache.org by George Hart <ha...@z57.com> on 2001/10/23 05:28:36 UTC
perl regexp bug in 2.04 (worked in 2.0)
Hi,
i believe i might have found a bug in v2.0.4. when running the
following bit of code in 2.0
public static void main(String args[]) {
String str="test@foobar.com";
Perl5Util perl=new Perl5Util();
System.out.println(perl.match("/^[\\w-._]+\\@[\\w-._]+$/",str));
}
the regexp matches as true, however in v2.0.4 it returns false.
i ran the regexp in perl and it returned true as well.
George Hart
RE: perl regexp bug in 2.04 (worked in 2.0)
Posted by "Alexey N. Solofnenko" <as...@home.com>.
Are you sure that you need slashes in the regular expression ("/.../")?
- Alexey.
_____
< http://members.home.com/asolofnenko/ > Alexey N. Solofnenko
< http://www.inventigo.com/ Inventigo LLC
Pleasant Hill, CA (GMT-8 usually)
-----Original Message-----
From: George Hart [mailto:hart@z57.com]
Sent: Monday, October 22, 2001 8:29 PM
To: oro-user@jakarta.apache.org
Subject: perl regexp bug in 2.04 (worked in 2.0)
Hi,
i believe i might have found a bug in v2.0.4. when running the
following bit of code in 2.0
public static void main(String args[]) {
String str="test@foobar.com";
Perl5Util perl=new Perl5Util();
System.out.println(perl.match("/^[\\w-._]+\\@[\\w-._]+$/",str));
}
the regexp matches as true, however in v2.0.4 it returns false.
i ran the regexp in perl and it returned true as well.
George Hart