Yep, with a negative lookaround (see
HERE for the first explanation I saw, way back, of this trick):
Matches the dot-match-all, if NOT followed by a "string", and then repeats the search ad nauseam.
regex is not
meant to do this sort of stuff, but it can be shoehorned into it.
There will be a performance hit, but how often does that become a practical matter?