[Top][All Lists]
[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.
- is expr's \? regex metachar working?, Clark O. Morgan, 2001/08/23
- Re: is expr's \? regex metachar working?, Andreas Schwab, 2001/08/23
- Re: is expr's \? regex metachar working?, Clark Morgan, 2001/08/23
- Re: is expr's \? regex metachar working?, Andreas Schwab, 2001/08/23
- Re: is expr's \? regex metachar working?, Clark Morgan, 2001/08/23
- Re: is expr's \? regex metachar working?, Andreas Schwab, 2001/08/23
- Re: is expr's \? regex metachar working?, Clark Morgan, 2001/08/23
- Re: is expr's \? regex metachar working?, Andreas Schwab, 2001/08/23
- Re: is expr's \? regex metachar working?,
Clark Morgan <=
- Re: is expr's \? regex metachar working?, Paul Jarc, 2001/08/23
Re: is expr's \? regex metachar working?, Clark O. Morgan, 2001/08/23