After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 319897 - Simple regexp doesn't work correctly
Simple regexp doesn't work correctly
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2005-10-26 19:57 UTC by abolgar
Modified: 2005-11-01 15:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description abolgar 2005-10-26 19:57:54 UTC
Please describe the problem:
A simple regular expression (\d{1,3}\.){3}\d{1,3} doesn't work correctly.
testRegexp reports "Fail" on correct data (checked by Perl script).

Steps to reproduce:
1. Run the following command:
testRegexp.exe "(\d{1,3}\.){3}\d{1,3}" "1.2.33.444" -debug

2. Perl script, like:

$s = "1.2.33.444";
print "OK!" if ($s =~ /^(\d{1,3}\.){3}\d{1,3}$/);

works just fine.

Actual results:
testRegexp prints "Fail"

Expected results:
testRegexp must print "Ok"

Does this happen every time?
Yes

Other information:
Comment 1 Daniel Veillard 2005-10-27 09:27:46 UTC
I can reproduce this, probably related to the other regexp bug.
I have no time at work for this those days, maybe the week-ends, and
I already spend an awful lot of time on the regexp debugging lately ...

Daniel
Comment 2 Daniel Veillard 2005-11-01 15:24:50 UTC
Okay I chased that one down, it's fixed in CVS now and I added the case
to the regression suite.
Thanks !

Daniel