in reply to A regex on the same content fails and works, with conditions

You called the snippet "the relevant section". Why don't you give us a snippet that actually gives the error instead of what you *think* is the relevant section. The one you posted doesn't run as is.

  • Comment on Re: A regex on the same content fails and works, with conditions