in reply to matching the non-presence of a string
It's not central to your question, but a friendly reminder
in support of good regex habits. You specify /s for each
regex but there are no periods in either one. Specifying
'/s' simply allows '.' to match line-end characters
within multi-line strings.