From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22206 invoked by alias); 27 Apr 2009 15:05:59 -0000 Received: (qmail 22175 invoked by uid 48); 27 Apr 2009 15:05:37 -0000 Date: Mon, 27 Apr 2009 15:05:00 -0000 From: "gzljg at hotmail dot com" To: glibc-bugs-regex@sources.redhat.com Message-ID: <20090427150536.10106.gzljg@hotmail.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug regex/10106] New: one or more match problem? X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-regex-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-regex-owner@sourceware.org X-SW-Source: 2009-04/txt/msg00000.txt.bz2 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.