eddie: > Can some one help me with a > regex that can replace everything before the <HTML> tag with nothing? >>> pat = re.compile(r"^((?!<HTML).)*", re.IGNORECASE | re.DOTALL) >>> pat.sub("", "junk\n<HTML>stuff") '<HTML>stuff' >>> pat.sub("", " <html>stuff") '<html>stuff' >>> Andrew dalke at dalkescientific.com