Regex remove groups bug

Fix to nltk#545, by using the python's sre module to parse regexes so all corner cases are covered.