regexp

William Park opengeometry-FFYn/CNdgSA at public.gmane.org
Sat Apr 24 18:22:19 UTC 2004


On Sat, Apr 24, 2004 at 03:37:20PM +0300, Peter L. Peres wrote:
> 
> Hi all, I am trying to write a regexp that matches something like:
> 
> abc=def and anything else instead of def, but not:
> 
> abc=fgh
> 
> so I try to use negation on a block (conceptually below, it is not a
> correct re):
> 
> /abc=!(fgh)

In shell,
    shopt extglob
In others,
    abc=[^f][^g][^h]

-- 
William Park, Open Geometry Consulting, <opengeometry-FFYn/CNdgSA at public.gmane.org>
Linux solution/training/migration, Thin-client
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list