in reply to Re: negative regex without !~
in thread negative regex without !~

Doesn't work. (?!) just makes it take the second alternative. People have proposed a FAIL HERE mechanism, but there isn't one now.

The alternate way (much worse than hv's IMO) that you sometimes see is (IIRC) /^(.(?!$regex))*\z/s