[Tutor] a re question

Newbie Python pythonpython@hotmail.com
Fri, 05 Oct 2001 03:14:12 +0000


How can use re to match something like:
js="""
<script language="JavaScript">
blahblahblahblahblahblahblah
blahblahblahblah
blahblahblahblah
</script>
"""

I use this:
re.match(r"<script.+?</script>",js,re.S)
but it will not match..

Can you please tell me why and how to write the regex?

Thanks a lot

Hy

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp