Skip to content

gastonsimone/regexcheat

Repository files navigation

Regular Expressions Cheatsheet

After reading the great book Mastering Regular Expressions by Jeffrey Friedl, I tried to find a good cheatsheet about regular expressions, but I could not find one showing all the things I wanted to remember, or have at hand, from this book. So I wrote my own.

Download

You can get the latest version of the document here.

More than a cheatsheet

You will see it is not just a cheatsheet, as it brings more useful information for quick reference. The document is divided in the following sections:

  1. Basics (a cheatsheet)
  2. Advanced (another cheatsheet)
  3. Special Characters (another, very specific, cheatsheet)
  4. Efficiency (another cheatsheet, focused on efficiency)
  5. Examples (two pages of very useful examples for real-life problems)
  6. Usage in Programming Languages and Tools (examples on different languages and tools)

If you want to really understand what is shown in this document (and much more!) you have to read Friedl's book.

Build the document yourself

After cloning this repository, you will need the following tools to build the document:

  • make (You will need the GNU version, which is the default in GNU/Linux and Mac OS X)
  • sed (both GNU and BSD versions should work)
  • TeXLive

Once you have all this, just run:

make clean
make

About

Regular expressions cheatsheet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published