Lines Matching refs:re
33 import re, sys, codecs
81 ESCAPE_SEQUENCE_RE = re.compile(r'''
88 )''', re.UNICODE | re.VERBOSE)
94 s = re.sub(r"\n\s*", " ", s)
96 s = re.sub(r"%(\d+\$)?[a-z]", "____", s)
97 s = re.sub(r"\^\d+", "____", s)
98 s = re.sub(r"<br/?>", "\n", s)
99 s = re.sub(r"</?[a-z]+>", "", s)
103 …if not isinstance(tag, ET._Comment) and re.match("{.*xliff.*}g", tag.tag) and "example" in tag.att…
155 limit = re.search("CHAR[ _-]LIMIT=(\d+|NONE|none)", comment.text)
159 elif re.match("\d+", limit.group(1)):
181 if re.search("\d-\d", text):
190 if re.match(r"^[A-Z\s]{5,}$", text):
198 if len(re.findall("%[^%]", text)) > 1:
199 if len(re.findall("%[^\d]", text)) > 0:
206 if gc.tail and re.search("%[^%]", gc.tail): badsub = True
207 if re.match("{.*xliff.*}g", gc.tag):
215 if gc.text and re.search("%[^%]", gc.text): badsub = True