What's the best method for parsing out data from a messy text file? or Struggling with parsing out va

22 Replies, 1961 Views

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.

Messages In This Thread



Users browsing this thread: 1 Guest(s)