C
chatiman
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?
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?