> can somebody point me to where this is documented http://www.python.org/doc/current/lib/re-syntax.html The "r" at the start means "raw string. I don't know where this is documented, I learnt it from the newsgroup. It means read the string literally. Otherwise, you have to escape the backslashes. Alex.