2 Dec
1999
2 Dec
'99
4:42 p.m.
Here's the pattern I use: _find_body_re = re.compile( '<body[^>]*>\s*(?P<body>.*?)\s*</body>', re.IGNORECASE| re.MULTILINE | re.DOTALL) You can then say: matchObj = _find_body_re.search(textString) bodyString = matchObj.group('body') Doug ----------------------------------------------------------------------------- Doug Hellmann Healtheon / WebMD Software Engineer http://www.webmd.com hellmann@gnncast.net 404.541.2021