Guides 11791 Published by

The Geek Stuff shows you how to use Python Regular Expressions to Parse a Text File



In the past few articles in the Python series, we’ve learned a lot about working with regular expressions in Python.

In this article, we’ll explain how we could use python regular expressions for a realistic task.

We’ll do a step by step walk through on how we can build Python data structures from formatted flat text files.
  How to Use Python Regular Expressions to Parse a Text File