public inbox for glibc-bugs-regex@sourceware.org
help / color / mirror / Atom feed
* [Bug regex/10106] one or more match problem?
       [not found] <bug-10106-132@http.sourceware.org/bugzilla/>
@ 2014-06-30  9:17 ` fweimer at redhat dot com
  0 siblings, 0 replies; 8+ messages in thread
From: fweimer at redhat dot com @ 2014-06-30  9:17 UTC (permalink / raw)
  To: glibc-bugs-regex

https://sourceware.org/bugzilla/show_bug.cgi?id=10106

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug regex/10106] one or more match problem?
  2009-04-27 15:05 [Bug regex/10106] New: " gzljg at hotmail dot com
                   ` (5 preceding siblings ...)
  2009-04-27 17:30 ` gzljg at hotmail dot com
@ 2009-04-28 15:31 ` gzljg at hotmail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: gzljg at hotmail dot com @ 2009-04-28 15:31 UTC (permalink / raw)
  To: glibc-bugs-regex


------- Additional Comments From gzljg at hotmail dot com  2009-04-28 15:31 -------
Created an attachment (id=3914)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3914&action=view)
revised version

to compile:
CC RegExpTest.C 
to run (not match case):
./a.out
to run (match case):
./a.out 1

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #3910 is|0                           |1
           obsolete|                            |


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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug regex/10106] one or more match problem?
  2009-04-27 15:05 [Bug regex/10106] New: " gzljg at hotmail dot com
                   ` (4 preceding siblings ...)
  2009-04-27 16:08 ` jakub at redhat dot com
@ 2009-04-27 17:30 ` gzljg at hotmail dot com
  2009-04-28 15:31 ` gzljg at hotmail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: gzljg at hotmail dot com @ 2009-04-27 17:30 UTC (permalink / raw)
  To: glibc-bugs-regex


------- Additional Comments From gzljg at hotmail dot com  2009-04-27 17:30 -------
Yes, I did. "regexp.h" is my wrapper header file...I should not have included it
in the test case.   Anyway, I tried to use <regex.h> now, and it still gives me
the same output "not match found"?

what output you have? any special compile option I should use?

-- 


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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug regex/10106] one or more match problem?
  2009-04-27 15:05 [Bug regex/10106] New: " gzljg at hotmail dot com
                   ` (3 preceding siblings ...)
  2009-04-27 15:52 ` gzljg at hotmail dot com
@ 2009-04-27 16:08 ` jakub at redhat dot com
  2009-04-27 17:30 ` gzljg at hotmail dot com
  2009-04-28 15:31 ` gzljg at hotmail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at redhat dot com @ 2009-04-27 16:08 UTC (permalink / raw)
  To: glibc-bugs-regex


------- Additional Comments From jakub at redhat dot com  2009-04-27 16:08 -------
Have you tried to even compile your testcase?  regexp.h != regex.h
",\\([^,]\\+\\),"
works just fine.

-- 


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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug regex/10106] one or more match problem?
  2009-04-27 15:05 [Bug regex/10106] New: " gzljg at hotmail dot com
                   ` (2 preceding siblings ...)
  2009-04-27 15:48 ` gzljg at hotmail dot com
@ 2009-04-27 15:52 ` gzljg at hotmail dot com
  2009-04-27 16:08 ` jakub at redhat dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: gzljg at hotmail dot com @ 2009-04-27 15:52 UTC (permalink / raw)
  To: glibc-bugs-regex


------- Additional Comments From gzljg at hotmail dot com  2009-04-27 15:52 -------
(In reply to comment #2)
> I think you want either ,\([^,]\+\), with basic syntax, or ,([^,]+), plus
> setting extended syntax.
> 
> Thus, invalid.

thanks Paolo, I try to use ",\([^,]\+\)," as you suggested but it still failed
for the basic syntax? Does it means I have to use the extended syntax?

-- 


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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug regex/10106] one or more match problem?
  2009-04-27 15:05 [Bug regex/10106] New: " gzljg at hotmail dot com
  2009-04-27 15:20 ` [Bug regex/10106] " drepper at redhat dot com
  2009-04-27 15:29 ` bonzini at gnu dot org
@ 2009-04-27 15:48 ` gzljg at hotmail dot com
  2009-04-27 15:52 ` gzljg at hotmail dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: gzljg at hotmail dot com @ 2009-04-27 15:48 UTC (permalink / raw)
  To: glibc-bugs-regex


------- 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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug regex/10106] one or more match problem?
  2009-04-27 15:05 [Bug regex/10106] New: " gzljg at hotmail dot com
  2009-04-27 15:20 ` [Bug regex/10106] " drepper at redhat dot com
@ 2009-04-27 15:29 ` bonzini at gnu dot org
  2009-04-27 15:48 ` gzljg at hotmail dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bonzini at gnu dot org @ 2009-04-27 15:29 UTC (permalink / raw)
  To: glibc-bugs-regex


------- Additional Comments From bonzini at gnu dot org  2009-04-27 15:29 -------
I think you want either ,\([^,]\+\), with basic syntax, or ,([^,]+), plus
setting extended syntax.

Thus, invalid.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug regex/10106] one or more match problem?
  2009-04-27 15:05 [Bug regex/10106] New: " gzljg at hotmail dot com
@ 2009-04-27 15:20 ` drepper at redhat dot com
  2009-04-27 15:29 ` bonzini at gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: drepper at redhat dot com @ 2009-04-27 15:20 UTC (permalink / raw)
  To: glibc-bugs-regex


------- Additional Comments From drepper at redhat dot com  2009-04-27 15:19 -------
This is no programming advice site.  Either you provide a complete small test
program and cite the passage from the standard you think is violated or you go away.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-06-30  9:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-10106-132@http.sourceware.org/bugzilla/>
2014-06-30  9:17 ` [Bug regex/10106] one or more match problem? fweimer at redhat dot com
2009-04-27 15:05 [Bug regex/10106] New: " gzljg at hotmail dot com
2009-04-27 15:20 ` [Bug regex/10106] " drepper at redhat dot com
2009-04-27 15:29 ` bonzini at gnu dot org
2009-04-27 15:48 ` gzljg at hotmail dot com
2009-04-27 15:52 ` gzljg at hotmail dot com
2009-04-27 16:08 ` jakub at redhat dot com
2009-04-27 17:30 ` gzljg at hotmail dot com
2009-04-28 15:31 ` gzljg at hotmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).