Regular expressions are a concise way to search and transform strings using patterns. They are available in numerous text editors and programming languages.
Here, I introduce basic regular expressions and show the intermediate and advanced syntax which I use commonly. The second-to-last slide has a nice cheatsheet.
Related blog post: http://dafoster.net/articles/2013/09/04/regular-expressions/