Home | History | Annotate | Download | only in scripts

Lines Matching refs:re

68 import re
73 (re.compile(r'\$var\s+'), '$var'),
74 (re.compile(r'\$elif\s+'), '$elif'),
75 (re.compile(r'\$else\s+'), '$else'),
76 (re.compile(r'\$for\s+'), '$for'),
77 (re.compile(r'\$if\s+'), '$if'),
78 (re.compile(r'\$range\s+'), '$range'),
79 (re.compile(r'\$[_A-Za-z]\w*'), '$id'),
80 (re.compile(r'\$\(\$\)'), '$($)'),
81 (re.compile(r'\$'), '$'),
82 (re.compile(r'\[\[\n?'), '[['),
83 (re.compile(r'\]\]\n?'), ']]'),
231 str = re.sub(r'^\s*\$\$.*\n', '', str)
234 return re.sub(r'\s*\$\$.*', '', str)
253 ID_REGEX = re.compile(r'[_A-Za-z]\w*')
254 EQ_REGEX = re.compile(r'=')
255 REST_OF_LINE_REGEX = re.compile(r'.*?(?=$|\$\$)')
256 OPTIONAL_WHITE_SPACES_REGEX = re.compile(r'\s*')
257 WHITE_SPACE_REGEX = re.compile(r'\s')
258 DOT_DOT_REGEX = re.compile(r'\.\.')
263 m = re.search(regex, line)
272 m = re.search(regex, line)
471 python_exp = re.sub(r'([_A-Za-z]\w*)', r'self.GetValue("\1")', token.value)
728 segs = [seg for seg in re.split(r'(\w+\W*)', comment) if seg != '']
748 segs = [seg for seg in re.split(r'([^,;]+[,;]?)', line.strip()) if seg != '']
780 return (re.match(r'^#(ifndef|define|endif\s*//)\s*[\w_]+\s*$', line) or
781 re.match(r'^#include\s', line))