From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16555 invoked by alias); 27 Apr 2009 15:48:31 -0000 Received: (qmail 16356 invoked by uid 48); 27 Apr 2009 15:48:10 -0000 Date: Mon, 27 Apr 2009 15:48:00 -0000 Message-ID: <20090427154810.16355.qmail@sourceware.org> From: "gzljg at hotmail dot com" To: glibc-bugs-regex@sources.redhat.com In-Reply-To: <20090427150536.10106.gzljg@hotmail.com> References: <20090427150536.10106.gzljg@hotmail.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug regex/10106] 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/msg00003.txt.bz2 ------- Additional Comments From gzljg at hotmail dot com 2009-04-27 15:48 ------- Created an attachment (id=3910) --> (http://sourceware.org/bugzilla/attachment.cgi?id=3910&action=view) compile the file and run. According to the "regex" doc quoted below, it should work, but it doesn't--> 3.4.2 The Match-one-or-more Operator (+ or \+) If the syntax bit RE_LIMITED_OPS is set, then Regex doesn't recognize this operator. Otherwise, if the syntax bit RE_BK_PLUS_QM isn't set, then `+' represents this operator; if it is, then `\+' does. This operator is similar to the match-zero-or-more operator except that it repeats the preceding regular expression at least once; see section 3.4.1 The Match-zero-or-more Operator (*), for what it operates on, how some syntax bits affect it, and how Regex backtracks to match it. For example, supposing that `+' represents the match-one-or-more operator; then `ca+r' matches, e.g., `car' and `caaaar', but not `cr'. -- 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.