This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug regex/14301] Regular expression wrong match with a number of groups
- From: "valery_reznic at yahoo dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Wed, 27 Jun 2012 08:15:30 +0000
- Subject: [Bug regex/14301] Regular expression wrong match with a number of groups
- Auto-submitted: auto-generated
- References: <bug-14301-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14301
Valery <valery_reznic at yahoo dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #2 from Valery <valery_reznic at yahoo dot com> 2012-06-27 08:15:30 UTC ---
(In reply to comment #1)
> (4[0-9]{12}) matches 4123456789012.
So what?
Regular expression required leading and trailing space to be present for match.
IMO, result for case 3) are wrong
Also please note, that in case 3 and 4 regular expressions are essentially the
same - only (4[0-9]{15}) and (4[0-9]{12}) that connected with OR swapped.
But results are different.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.