Lines Matching defs:re
2 import re
250 if re.search(r'^type\s', line):
252 if re.search(r'^attribute\s', line):
254 if re.search(r'^typeattribute\s', line):
256 if re.search(r'^class\s', line):
258 if re.search(r'^common\s', line):
260 if re.search(r'^allow\s', line):
262 if re.search(r'^neverallow\s', line):
322 # permissions with wildcards and the given class on which they're based.
400 match = re.search(r'^attribute\s+(.+);', line)
409 match = re.search(r'^class\s([^\s]+)\s(.*$)', line)
430 permissions = re.sub(r'#[^\n]*\n','\n' , permissions) #get rid of all comments
436 match = re.search(r'^common\s([^\s]+)(.*$)', line)
455 match = re.search(r'^(never)?allow\s(.*$)', line)
505 match = re.search(r'^type\s([^,]+),?(.*);', line)
523 match = re.search(r'^typeattribute\s([^\s]+)\s(.*);', line)