...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.
sed
grep
Like sed.
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.
sed
- \(\)
- \+
- *
- .
- \/ (backslash must be escaped, even if not used as seperator cahracter)
- \|
grep
Like sed.
Comments