Many people think that learning to use Regular Expressions is difficult, but if you stick to the basics it is actually quite easy. This screencast and cheatsheet will give you a gentle introduction and allow you to gradually expand your knowledge into advanced usage.

Nothing can improve your ability to manipulate text as much as learning Regular Expressions, and it is not just in your editor. Just about any modern programming language support them, so you can greatly enhance your productivity and understanding of code by learning them.

The following screencast gives an introduction to the basics of regular expressions and shows how you can use them in your editor. The best way to learn is just playing around with them and watching the interactive feedback.

I have included a cheatsheet that you can use as a quick reference, and to expand your knowledge of Regular Expressions. I recommend that you print it out and gradually expand your comfort zone by trying out more and more features.

Regular Expression Cheatsheet

20 Responses to “Learning Regular Expressions (Video Tutorial and Cheatsheet)”

  1. Thomas Herzog Says:

    Very nice introduction/tutorial/refresher to Regular Expressions, also immensely useful outside of e. Thank you! (And thanks for the cheat sheet, I thought I knew quite a bit about RE already, but anchors and POSIX classes were new to me)

  2. myel Says:

    Very nice screencast Alexander,

    a very good introduction to regular expressions and you also managed to show some features of e :) . (imho the live highlighting is extremely useful and one of the best features e has to offer)

  3. Geoff Says:

    Fantastic! I decided to tackle regex’s this year and it’s really been worthwhile.

  4. Anand Muthu Says:

    Cool :) Nice HOW-to !
    Will try to use this in my Apps :)

  5. Jenny Says:

    Nice screencast and thanks for the cheat sheet!

    I’ve been using this application for years, it’s quite handy:

    http://weitz.de/regex-coach/

  6. Filipe Says:

    Very good, thanks.

  7. V4g3 Says:

    Does anyone know which application is used in the tutorial?

  8. Ronaldo Says:

    It is the text editor “e”, a pretty cool new text editor which allows you to use the TextMate bundles on windows. This blog is written by the developer of e.

    You can download the editor here:
    http://e-texteditor.com/download/e_beta_setup.exe

  9. V4g3 Says:

    Thanks Ronaldo and sorry :(

    I just got the link to the tutorial and I did not care about the site.
    So it was a really interesting question from me right on this site :P

  10. a Says:

    Thank u so much!

  11. Jordan T. Cox Says:

    V4g3; It isn’t readily apparent that the author of this blog is also the author of “e”. Though seriously e is quickly becoming my favorite editor. It’s even unseated the Godly Vim. I absolutely /adore/ the way that it handles RegExps. It’s fantastic to see your RegExp automatically highlighted and to know exactly how it’s matching.

  12. Tom Sieron Says:

    Thanks! Great introduction.

  13. Vikramraj Kalaiselvan Says:

    I loved it. well spent 15 odd minutes.
    Thanks!

  14. Vishal Shah Says:

    Thanks. Great intro.

  15. Corey Csuhta Says:

    Great tutorial, and it was especially easy doing it in e, eh? ^_~

  16. Brad Reynolds Says:

    Thanks for the cheatsheet; it will come in handy. Is there a chance that you could make it available in a printer friendly color scheme? The black backgrounds will eat up a lot of ink.

  17. Jon Clark Says:

    Great video, very easy to follow. Cheers.

  18. Lefteris Says:

    Bravo! Great Tutorial. Screencasts will be the future for tutorials on the web. Very good job!
    Lefteris

  19. Paul Says:

    is this app still actively being worked on? I think there is huge potential, especially as an actionscript editor. Keep it up!

  20. Joe Says:

    Great intro. got through regex with difficulty but never thought its simplicity tips.