Python Regular Expressions Tutorial
A series on using regular expressions with Python, with examples. Including matching characters, repetitions, captured groups, assertions, and functions.
In the first two parts of this series, we looked at some fairly advanced usage of regular expressions. In this part, we take a step back and look at some of the other functions Python offers in the re module, then we talk about some common mistakes people regularly (ha!) make. Useful Python Regular Expression […]Read More
We’ve covered a lot of ground in this series of articles, so let’s now put it all together and work through a real-life application. A common task is to parse a Windows INI file, which are key/value pairs, separated into sections, something like this:
Let’s first write a bit of Python code that reads […]Read More