What are the best resources for learning regular expressions?
21st February 2012
My answer to What are the best resources for learning regular expressions? on Quora
The O’Reilly book on Regular Expressions is absolutely superb. It will help you build a much deeper understanding if how they actually work than any online tutorial I’ve seen.
Chapter 3 of “Text Processing in Python” is excellent too, and is available for free online:
http://gnosis.cx/TPiP/chap3.txtMore recent articles
- Ladybird's first alpha release - 23rd November 2026
- Running the full server-side Datasette Python app in the browser with service workers and Pyodide - 17th November 2026
- Locating the source of a mysterious beep with Claude - 9th November 2026
- Hide your slop PR descriptions behind <details><summary> - 9th November 2026