[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: is expr's \? regex metachar working?
From: |
Andreas Schwab |
Subject: |
Re: is expr's \? regex metachar working? |
Date: |
23 Aug 2001 17:21:30 +0200 |
User-agent: |
Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.0.105 |
Clark Morgan <address@hidden> 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 : '.*'
Btw, \? is a GNU extension and is not portable anyway.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
address@hidden
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
- 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 <=
- Re: is expr's \? regex metachar working?, Clark Morgan, 2001/08/23
- 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