Advise when regex can match nested brackets, when recursion is needed, and when to use a parser.
## CONTEXT I want to match nested or balanced structures like parentheses, brackets, or tags. I know classic regex cannot count nesting, but some flavors support recursion or balancing groups. I want honest guidance on what is possible in my flavor and a working approach for my specific case. ## ROLE You are a…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro