modify html parser regex

This commit is contained in:
Sanj 2011-07-06 19:25:47 +05:30
parent 15de609ad1
commit 90d0db74cd

View File

@ -20,7 +20,7 @@ def parse_html(value, m):
>>>parse_html("foo is 20px", 4) >>>parse_html("foo is 20px", 4)
>>>"foo is 80px" >>>"foo is 80px"
""" """
p = "font\-size: [0-9][0-9]?px" p = "font\-size:[\s]?[0-9][0-9]?px"
matches = re.findall(p, value) matches = re.findall(p, value)
for match in matches: for match in matches:
# reg = r'font-size:[\s?] # reg = r'font-size:[\s?]