Test, validate and match regular expressions
This regular expression uses a negative lookahead to match any complete line that does not start with the string "gtm.". In the context of Google Tag Manager, it is highly effective for filtering out built-in events (like gtm.js or gtm.dom), allowing you to isolate custom data layer events. The multiline flag ensures it processes each line individually within a larger text block.