Roman wrote: > This is excellent. Thanks a lot. > > Also, what made the expression greedy?
They usually are, by default. It means that when there are more than one ways to match the pattern, choose the one that matches the most text. Often there are flags available to change that behavior. I'm not sure off hand how to do it with the re module. -- Posted via a free Usenet account from http://www.teranews.com -- http://mail.python.org/mailman/listinfo/python-list