If you’re using Python, `parse` (the library) is *way* nicer than regex for simple patterns.
Like, you can do `parse("Time: {}", log_line)` and it’ll grab the timestamp if the format’s close enough.
For messy stuff, though, regex is still king.
Like, you can do `parse("Time: {}", log_line)` and it’ll grab the timestamp if the format’s close enough.
For messy stuff, though, regex is still king.
