Test, validate and match regular expressions
This regex matches a `[div]...[/div]` shortcode format, commonly used in BBCode or CMS editors, capturing optional `id` and `class` attributes along with the inner content. It allows for attributes enclosed in single or double quotes and is designed to run globally with multiline and dotall flags to handle multiple and multiline blocks. It is useful for parsing custom markup in web applications or CMS platforms.