2012/3/15 Chris Watkins chriswaterguy@appropedia.org
IndexError: no such group no such group
This occurs when you use a condtional group and it does not exist and you refer to it. In this case (.*$) will match an empty part and in that case \2 refers to nothing.