Test, validate and match regular expressions
This PCRE2 regex matches a specific function signature or block declaration starting with 'mongoDb: (variable, subs, value, data) {'. It captures everything inside the curly braces into a named capture group called 'code'. Because it uses '(.|\s)*', it effectively matches across multiple lines, making it highly useful for extracting multi-line code blocks, payloads, or logic from scripts and logs.