Hi guys good day. First time to touch Python and i'm stuck in regex. Honestly speaking i'm no good in regex, so I need help about this one.
so far this is my code.
I want to get on what's between <table class=3D"data"> </table>. so far the pattern lacks </table> so basically I just get data after <table class=3D"data"> pattern because I don't on how to deal that one.Code:import re micro_list = open('c:/my documents/my sample project/mhtbuilder_demo/bin/msdnlibrary.mht','r+b') m = re.search('(?<=[<table class=3D"data">])\w+',micro_list) if m: print m.group(0)
thanx in advance guys.





Reply With Quote