This is the mail archive of the
glibc-bugs-regex@sourceware.org
mailing list for the glibc project.
[Bug regex/10106] New: one or more match problem?
- From: "gzljg at hotmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs-regex at sources dot redhat dot com
- Date: 27 Apr 2009 15:05:37 -0000
- Subject: [Bug regex/10106] New: one or more match problem?
- Reply-to: sourceware-bugzilla at sourceware dot org
I try to get a non-empty string that separated by a comma(,) for example,
for the line : ,ABC, /// --> I want to get "ABC"
for the line : ,, /// --> I want to report a 'not match'
So I try to use the regular expression as : ,\([^,]+\),
this wouldn't match though? I had to change to ",\([^,]*\)," but then this
would also match a "empty" string in case 2 above.
Any idea?
--
Summary: one or more match problem?
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: regex
AssignedTo: drepper at redhat dot com
ReportedBy: gzljg at hotmail dot com
CC: glibc-bugs-regex at sources dot redhat dot com,glibc-
bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10106
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.