How to use it
Step 1
Paste the full multiline sample
Keep the original line breaks because they affect matching behavior.
Step 2
Enable the right flags
Use multiline or dotall behavior deliberately rather than guessing.
Step 3
Inspect the captured section
Verify the group stops at the correct closing marker without swallowing extra text.