Lines Matching refs:re
47 import re
105 return re.sub(r"\$\{([\w$%]+)\}",
115 if re.match("[\"'/]", matched_text):
117 m = re.match(r"var ", matched_text)
120 var_names = re.split(r",", var_names)
122 m = re.match(r"(function\b[^(]*)\((.*)\)\{$", matched_text)
126 args = re.split(r",", args)
192 if re.match(r"'.*'$", entire_match):
194 if re.match(r'".*"$', entire_match):
196 if re.match(r"`.*`$", entire_match):
198 if re.match(r"/.+/$", entire_match):
215 for line in re.split(r"\n", text):
218 m = re.search(r"\*/", line)
227 line = re.sub(r"/\*.*?\*/", " ", line)
228 line = re.sub(r"//.*", "", line)
229 m = re.search(r"/\*", line)
235 line = re.sub(r"^ +", "", line)
236 line = re.sub(r" +$", "", line)
252 line = re.sub("|".join([double_quoted_string,
261 line = re.sub("|".join([double_quoted_string,
270 re.sub(r"([a-zA-Z0-9_$%]+)", self.LookAtIdentifier, line)
279 if re.search(r"\?", line):
285 line = re.sub("|".join([double_quoted_string,