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

22 Replies, 1968 Views

If you’re working in Python, the `re` module is solid for regex, but for *really* messy stuff, `pyparsing` can handle weird formats better.

Also, `pandas` has some decent tools for parsing out structured data from logs if you can load it into a DataFrame.

Nested data? Yeah, that’s a nightmare. Maybe try `jsonpath` if it’s JSON?

Messages In This Thread



Users browsing this thread: 1 Guest(s)