One single line regex solution would be:
re.sub(r'http\://www.mysite.org/\?page=([^"]+)',r'pages/\1.htm',html) -- http://mail.python.org/mailman/listinfo/python-list
One single line regex solution would be:
re.sub(r'http\://www.mysite.org/\?page=([^"]+)',r'pages/\1.htm',html) -- http://mail.python.org/mailman/listinfo/python-list