bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: is expr's \? regex metachar working?


From: Clark Morgan
Subject: Re: is expr's \? regex metachar working?
Date: Thu, 23 Aug 2001 07:54:43 -0700
User-agent: Mutt/1.2.5i

On Thu, Aug 23, 2001 at 04:47:31PM +0200, Andreas Schwab wrote:
> ????  The regexp _is_ matching, since expr prints > 0.

$ ./expr "abcdef" : '.*b'
2
$ ./expr "abcdef" : '.*b\+'
2
$ ./expr "abcdef" : '.*b\?'
6

   Does this illustrate why I think it's broken?

   Remember, the docu says:  0 or 1 matches.  It seems to me that \?
   matches 0 occurrences always.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]