A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://svn.python.org/projects/python/tags/r14beta2/Lib/sgmllib.py below:

# A parser for SGML, using the derived class as static DTD. # XXX This only supports those SGML features used by HTML. # XXX There should be a way to distinguish between PCDATA (parsed # character data -- the normal case), RCDATA (replaceable character # data -- only char and entity references and end tags are special) # and CDATA (character data -- only end tags are special). import regex import string # Regular expressions used for parsing interesting = regex.compile('[&<]') incomplete = regex.compile('&\([a-zA-Z][a-zA-Z0-9]*\|#[0-9]*\)?\|' '<\([a-zA-Z][^<>]*\|' '/\([a-zA-Z][^<>]*\)?\|' '![^<>]*\)?') entityref = regex.compile('&\([a-zA-Z][a-zA-Z0-9]*\)[^a-zA-Z0-9]') charref = regex.compile('&#\([0-9]+\)[^0-9]') starttagopen = regex.compile('<[>a-zA-Z]') shorttagopen = regex.compile('<[a-zA-Z][a-zA-Z0-9]*/') shorttag = regex.compile('<\([a-zA-Z][a-zA-Z0-9]*\)/\([^/]*\)/') endtagopen = regex.compile('a-zA-Z]') endbracket = regex.compile('[<>]') special = regex.compile(']*>') commentopen = regex.compile('

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4