Lines Matching refs:re
10 import string, re
95 wordsep_re = re.compile(
104 wordsep_simple_re = re.compile(r'(\s+)')
108 sentence_end_re = re.compile(r'[%s]' # lowercase letter
138 self.wordsep_re_uni = re.compile(self.wordsep_re.pattern, re.U)
139 self.wordsep_simple_re_uni = re.compile(
140 self.wordsep_simple_re.pattern, re.U)
225 # If we're allowed to break long words, then do so: put as much
237 # If we're not allowed to break long words, and there's already
371 _whitespace_only_re = re.compile('^[ \t]+$', re.MULTILINE)
372 _leading_whitespace_re = re.compile('(^[ \t]*)(?:[^ \t\n])', re.MULTILINE)
419 text = re.sub(r'(?m)^' + margin, '', text)