Hi again. I'm trying to strip all script blocks from HTML, and am using the following re to do it:
p = re.compile("(\<script.*>*\</script>)",re.IGNORECASE | re.DOTALL) m = p.search(data) The problem is that I'm getting everything from the 1st script's start tag to the last script's end tag in one group - so it seems like it parses the string from both ends therefore removing far more from that data than I want. What am I doing wrong? -- http://mail.python.org/mailman/listinfo/python-list