On Fri, Aug 19, 2016 at 11:13 PM, iMath <redstone-c...@163.com> wrote: > 1. searching the page two times rather than one is a little bit time > consuming .
Have you measured that? If not, ignore it. You're searching a web page; if you're downloading that before you search it, chances are very good that you spend far more time waiting for the download than you ever will on the regex. ChrisA -- https://mail.python.org/mailman/listinfo/python-list