How to Use Python Regular Expressions to Parse a Text File
Posted on: 08/26/2014 10:22 AM

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

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.



Printed from Linux Compatible (http://www.linuxcompatible.org/news/story/how_to_use_python_regular_expressions_to_parse_a_text_file.html)