Regexp problem
From: chatiman (chatiman_at_free.fr)
Date: 02/28/04
- Next message: Tad McClellan: "Re: Regexp problem"
- Previous message: Joe Cipale: "Along a similar vein (Was Re: hash of hashes with lists)"
- Next in thread: Tad McClellan: "Re: Regexp problem"
- Reply: Tad McClellan: "Re: Regexp problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 28 Feb 2004 18:32:02 +0100
Hello,
I'd like to match a line which does not begin with a given words and match a
given regexp.
eg:
lines which contains "bar" but does not begin with "foo"
I tried the following regexp but this doesn't work:
/^(?<!foo).*bar/
Any ideas to do that in 1 regexp?
- Next message: Tad McClellan: "Re: Regexp problem"
- Previous message: Joe Cipale: "Along a similar vein (Was Re: hash of hashes with lists)"
- Next in thread: Tad McClellan: "Re: Regexp problem"
- Reply: Tad McClellan: "Re: Regexp problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]