This is the mail archive of the
glibc-bugs-regex@sourceware.org
mailing list for the glibc project.
[Bug regex/10106] 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:48:10 -0000
- Subject: [Bug regex/10106] one or more match problem?
- References: <20090427150536.10106.gzljg@hotmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.