Home | History | Annotate | Download | only in python2.7

Lines Matching refs:re

32 import re, urlparse, copy, time, urllib
122 TIMEZONE_RE = re.compile(r"^([-+])?(\d\d?):?(\d\d)?$")
190 STRICT_DATE_RE = re.compile(
193 WEEKDAY_RE = re.compile(
194 r"^(?:Sun|Mon|Tue|Wed|Thu|Fri|Sat)[a-z]*,?\s*", re.I)
195 LOOSE_HTTP_DATE_RE = re.compile(
211 \s*$""", re.X)
268 ISO_DATE_RE = re.compile(
283 \s*$""", re.X)
318 """Return unmatched part of re.Match object."""
322 HEADER_TOKEN_RE = re.compile(r"^\s*([^=\s;,]+)")
323 HEADER_QUOTED_VALUE_RE = re.compile(r"^\s*=\s*\"([^\"\\]*(?:\\.[^\"\\]*)*)\"")
324 HEADER_VALUE_RE = re.compile(r"^\s*=\s*([^\s;,]*)")
325 HEADER_ESCAPE_RE = re.compile(r"\\(.)")
403 non_junk, nr_junk_chars = re.subn("^[=\s;]*", "", text)
411 HEADER_JOIN_ESCAPE_RE = re.compile(r"([\"\\])")
429 if not re.search(r"^\w+$", v):
467 for ii, param in enumerate(re.split(r";\s*", ns_header)):
473 k, v = re.split(r"\s*=\s*", param, 1)
496 IPV4_RE = re.compile(r"\.\d+$")
581 cut_port_re = re.compile(r":\d+$")
636 ESCAPED_CHAR_RE = re.compile(r"%([0-9a-fA-F][0-9a-fA-F])")
1209 non_word_re = re.compile(r"\W")
1210 quote_re = re.compile(r"([\"\\])")
1211 strict_domain_re = re.compile(r"\.?[^.]*")
1212 domain_re = re.compile(r"[^.]*")
1213 dots_re = re.compile(r"^\.+")
1420 # XXX Strictly you're supposed to follow RFC 2616
1502 port = re.sub(r"\s+", "", port)
1695 sent back to the server (provided you're using DefaultCookiePolicy),