in reply to Re^2: Using negative lookahead
in thread Using negative lookahead

depends what you mean with the general case.

Do you mean ...

This is hypothetical, since even one letter doesn't work. This Would disallow a multibyte sequence if the match holds a word.

I.e. like the word "not" to be forbidden to follow

Here chaining look-aheads work like AND conditions.

For single bytes, this would be equivalent of [^\g1\g2] (if it was possible)

you might be interested this excellent tutorial

Using Look-ahead and Look-behind

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!