This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug regex/10106] New: one or more match problem?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]