in reply to Re^2: nested reg ex over multiple lines
in thread nested reg ex over multiple lines

I came up with something that I think does what you want below using "inch along with negative lookahead" strategy.
  • Comment on Re^3: nested reg ex over multiple lines