Chapter 8: Real world applications

Conclusion

face Josiah Wang

Congratulations! You have now mastered regular expressions! You are officially powered-up!

You have learnt how to represent patterns concisely as regular expressions and match them to strings. You have learnt how to use them to extract specific information that you need from text, and even replace the information. That’s basically what you do with regular expressions!

Now, use your new found skills wisely, whether in Python or – if you are geeky enough – in grep in a bash script!