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

Lines Matching refs:re

30 import re
38 qp = re.compile('^content-transfer-encoding:\\s*quoted-printable', re.I)
39 base64_re = re.compile('^content-transfer-encoding:\\s*base64', re.I)
40 mp = re.compile('^content-type:.*multipart/.*boundary="?([^;"\n]*)', re.I|re.S)
41 chrset = re.compile('^(content-type:.*charset=")(us-ascii|iso-8859-[0-9]+)(".*)', re.I|re.S)
42 he = re.compile('^-*\n')
43 mime_code = re.compile('=([0-9a-f][0-9a-f])', re.I)
44 mime_head = re.compile('=\\?iso-8859-1\\?q\\?([^? \t\n]+)\\?=', re.I)
45 repl = re.compile('^subject:\\s+re: ', re.I)
153 # we're dealing with a reply message
168 line = re.sub(mime_head, '\\1', line)
225 mime_char = re.compile('[=\177-\377]') # quote these chars in body
226 mime_header_char = re.compile('[=?\177-\377]') # quote these in header
260 mime_header = re.compile('([ \t(]|^)([-a-zA-Z0-9_+]*[\177-\377][-a-zA-Z0-9_+\177-\377]*)(?=[ \t)]|\n)')
276 mv = re.compile('^mime-version:', re.I)
277 cte = re.compile('^content-transfer-encoding:', re.I)
278 iso_char = re.compile('[\177-\377]')