Re: RegEx with multiple occurrences

2006-05-04 Thread Tim Chase
> Tim - you're a legend. Thanks. A leg-end? I always knew something was a-foot. Sorry to make myself the butt of such joking. :) My pleasure...glad it seems to be working for you. -tkc (not much of a legend at all...just a regexp wonk) -- http://mail.python.org/mailman/listinfo/python-

Re: RegEx with multiple occurrences

2006-05-04 Thread Mike
Tim - you're a legend. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: RegEx with multiple occurrences

2006-05-04 Thread Tim Chase
> p = re.compile("(\*\)",re.IGNORECASE | re.DOTALL) > m = p.search(data) First, I presume you didn't copy & paste your expression, as it looks like you're missing a period before the second asterisk. Otherwise, all you'd get is any number of greater-than signs followed by a closing "" tag. Se

RegEx with multiple occurrences

2006-05-04 Thread Mike
Hi again. I'm trying to strip all script blocks from HTML, and am using the following re to do it: p = re.compile("(\*\)",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 see