Hi, Where an I find some nice regex reference cards that I can download/buy?
That cheat sheet lists `<` and `>` as meta characters that always need escaping, which is not true.
Bart Kiers
2009-12-11 10:52:06
Actually it depends of the flavour of your Regex engine... If you want to know more you can consult "Mastering Regular Expressions" (http://books.google.fr/books?id=GX3w_18-JegC) from Jeffrey E. F. Friedl.
Arno
2009-12-11 13:59:48
In most PCRE regex engines (Perl, Java, PHP, Python, JS, ...), they're no meta characters. If you mean to say Friedl's books says so differently, please cite the page number and I'll look it up in my own copy of the book.
Bart Kiers
2009-12-12 07:46:11
The fact that `<` is used in look-arounds or `<` and `>` for named groups does not mean they're meta characters. If that were the case, characters like `=` and `!` would also be meta characters (which is not the case).
Bart Kiers
2009-12-12 07:56:16
Ok, I did not read your comment well at the first time... and you are absolutely right... Those are not meta characters.I advised the author. Thanks for the feedback (in fact, i don't use this part of the cheat sheet since escaping is so different between 2 Regex tools).
Arno
2009-12-12 09:22:10