Monday, October 19, 2009

Regular Expression Cheat Sheet YEAHH!!

...NOT! There seems to be no good regex escaping cheat-sheet, that is easy to find.
I was so tired of remebering when to escape what in grep, awk, sed and emacs, that I asked google for help. The result of my search was not very satisfying :(

So I started this blogpost as the location for gathering all diffrent escaping styles that I find during my daily work.

  • \(\)
  • \+
  • *
  • .
  • \/ (backslash must be escaped, even if not used as seperator cahracter)
  • \|

Like sed.