Back to index

python3.2  3.2.2
html.parser Namespace Reference


tuple interesting_normal = re.compile('[&<]')
tuple interesting_cdata = re.compile(r'<(/|\Z)')
tuple incomplete = re.compile('&[a-zA-Z#]')
tuple entityref = re.compile('&([a-zA-Z][-.a-zA-Z0-9]*)[^a-zA-Z0-9]')
tuple charref = re.compile('&#(?:[0-9]+|[xX][0-9a-fA-F]+)[^0-9a-fA-F]')
tuple starttagopen = re.compile('<[a-zA-Z]')
tuple piclose = re.compile('>')
tuple commentclose = re.compile(r'--\s*>')
tuple tagfind = re.compile('[a-zA-Z][-.a-zA-Z0-9:_]*')
tuple attrfind

Detailed Description

A parser for HTML and XHTML.

Variable Documentation

Initial value:
00001 re.compile(
00002     r'\s*([a-zA-Z_][-.:a-zA-Z_0-9]*)(\s*=\s*'
00003     r'(\'[^\']*\'|"[^"]*"|[^\s"\'=<>`]*))?')

Definition at line 29 of file

tuple html.parser.charref = re.compile('&#(?:[0-9]+|[xX][0-9a-fA-F]+)[^0-9a-fA-F]')

Definition at line 21 of file

Definition at line 25 of file

tuple html.parser.entityref = re.compile('&([a-zA-Z][-.a-zA-Z0-9]*)[^a-zA-Z0-9]')

Definition at line 20 of file

tuple html.parser.incomplete = re.compile('&[a-zA-Z#]')

Definition at line 18 of file

Definition at line 17 of file

Definition at line 16 of file

Definition at line 24 of file

tuple html.parser.starttagopen = re.compile('<[a-zA-Z]')

Definition at line 23 of file

tuple html.parser.tagfind = re.compile('[a-zA-Z][-.a-zA-Z0-9:_]*')

Definition at line 26 of file