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 08:25:33 -0700
User-agent: Mutt/1.2.5i

On Thu, Aug 23, 2001 at 05:21:30PM +0200, Andreas Schwab wrote:
> Clark Morgan <cmorganOaracnet.com> writes:
> 
> |> But, and this is a big BUT, expr puts an implied '^' at the beginning of
> |> every regexp.  Consequently, when matching a nontrivial pattern, you've got
> |> no choice but to add .* at the beginning of the regexp if you want to find
> |> a substring.
> 
> What wrong with this:
> 
> $ expr abcdef : '.*b' '|' abcdef : '.*'

nyuk nyuk nyuk...that's a good one, Andreas :-) 

> Btw, \? is a GNU extension and is not portable anyway.

And we can leave it at that.



reply via email to

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