Searched refs:comment_regex (Results 1 – 3 of 3) sorted by relevance
59 comment_regex = r"^(\s*)//\s(.*)$" variable62 return re.search(comment_regex, line)73 match = re.search(comment_regex, line)77 match = re.search(comment_regex, line)
529 comment_regex = re.compile(r'^\s*#') variable in TextFSM683 if self.comment_regex.match(line):751 if line and not self.comment_regex.match(line):777 if self.comment_regex.match(line):
146 …comment_regex = re.compile(r'//.*?$|/\*.*?\*/|\'(?:\\.|[^\\\'])*\'|"(?:\\.|[^\\"])*"', re.DOTALL |…147 return re.sub(comment_regex, replace_with_empty, code)