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

Reply via email to