Home | History | Annotate | Download | only in html5lib

Lines Matching refs:re

3 import re
11 content_type_rgx = re.compile(r'''
22 re.VERBOSE)
206 val_unescaped = re.sub("[`\000-\040\177-\240\s]+", '',
223 attrs[attr] = re.sub(r'url\s*\(\s*[^#\s][^)]+?\)',
227 'xlink:href' in attrs and re.search('^\s*[^#\s].*',
256 style = re.compile('url\s*\(\s*[^\s)]+?\s*\)\s*').sub(' ', style)
259 if not re.match("""^([:,;#%.\sa-zA-Z0-9!]|\w-\w|'[\s\w]+'|"[\s\w]+"|\([\d,\s]+\))*$""", style):
261 if not re.match("^\s*([-\w]+\s*:[^:;]*(;\s*|$))*$", style):
265 for prop, value in re.findall("([-\w]+)\s*:\s*([^:;]*)", style):
274 not re.match("^(#[0-9a-f]+|rgb\(\d+%?,\d*%?,?\d*%?\)?|\d{0,2}\.?\d{0,2}(cm|em|ex|in|mm|pc|pt|px|%|,|\))?)$", keyword):