In my opinion you would be best to use a tool like Kiki. http://project5.freezope.org/kiki/index.html/#
This will allow you to paste in the actual text you want to search and then play with different RE's and set flags with a simple mouse click so you can find just what you want. Rember what re.DOTALL does. It will treat white spaces special and if there are line breaks it will follow them, otherwise it will not. It's a good idea to have a grasp of regular expressions or when you come back to your code months / weeks later, you will be just as lost, and always comment them very well :). Just my 2ยข -- http://mail.python.org/mailman/listinfo/python-list