Lines Matching refs:re
6 import re
50 regex = re.compile(pat, re.I)
54 regex = re.compile(pat)
57 left_res = re.compile(r'^[^A-Za-z0-9]*(.*)')
58 right_res = re.compile(r'(.*)[ /*\t]$')
63 cpr_line = re.compile(r'copyright.*(20[0-2][0-9]|19[7-9][0-9])', re.I)
64 upper = re.compile(r'[A-Z]')
65 lower = re.compile(r'[a-z]')
66 modified = re.compile(r'Modified')
67 derived = re.compile(r'code is derived from software', re.I)
74 m = re.match(r'(.*<[^>]+>).*', line)
117 if re.match(r'^no support for.*', copyright):
121 if re.search(r'NetBSD', copyright):
123 if (re.search(r'Redistributions *(of)? *source +code', copyright) and
124 re.search(r'Redistributions +in +binary +form', copyright)):
125 if re.search(r'[tT]he +names? of', copyright):
129 if (re.search(r'University', copyright) and
130 re.search(r'California', copyright) and
131 re.search(r'Berkeley', copyright)):
133 if re.search(r'FreeBSD', copyright):
135 if (re.search(r'AGPL', copyright) or
136 re.search(r'Affero General Public License', copyright)):
137 if re.search(r'version 3', copyright):
140 if re.search(r'the GPL', copyright):
141 if re.search(r'version 2', copyright):
143 if re.search(r'version 3', copyright):
155 tog = re.compile(r'.*Open Group Base Specification', re.I | re.S)
156 m = re.compile(r'.*copyright.*', re.I | re.S)
191 …for lastcopy in re.finditer(r'copyright (\(c\))? *(19[7-9][0-9]|20[0-2][0-9])[^A-Z]*[A-Z][^\n]*', …
195 for para in re.finditer(r'\n\n', copyright, re.S):
199 for all in re.finditer(r'all rights reserved\.?', copyright, re.I | re.S):
203 para = re.search(r'\n\n', copyright, re.S)
204 all = re.search(r'all rights reserved\.?', copyright, re.I | re.S)
205 licensed = re.search(r'This ', copyright, re.I | re.S)
206 portions = re.search(r'Portions', copyright, re.I | re.S)
207 mod = re.search(r'modification', copyright, re.I | re.S)
208 perm = re.search(r'permission to', copyright, re.I | re.S)
209 public = re.search(r'public domain', copyright, re.I | re.S)
232 m = re.match(r'^[ \t]*\n[ \t]*\n*', copyright, re.I|re.S)
241 l = re.compile(r'^#[ \t]*(.*)$')
258 m = re.compile(r'.*copyright.*', re.I | re.S)
265 l = re.compile(r'^;;*[ \t]*(.*)$')
282 m = re.compile(r'.*copyright.*', re.I | re.S)
289 l = re.compile(r'^\.\\"[ \t]*(.*)$')
306 m = re.compile(r'.*copyright.*', re.I | re.S)
330 m = re.search(pattern, text)
336 return re.search(pattern, text)
354 if re.match(r'.*\.t$', name):
356 if re.match(r'.*\.cct$', name):
358 if re.match(r'.*ChangeLog.*', name):
360 if re.match(r'.*COPYING.*', name):
362 if re.match(r'.*NEWS.*', name):
364 if re.match(r'.*MAINTAINERS', name):
366 if re.match(r'CODE_OF_CONDUCT.*', name):
368 if re.match(r'CONTRIBUTING.*', name):
371 … if re.match(r'.*\.[ch]$', name) or re.match(r'.*\.ld$', name) or re.match(r'.*\.[ch]\.in$', name):
373 elif re.match(r'.*\.[sS]$', name):
377 elif re.match(r'.*meson.*', name) or re.match(r'.*Makefile.*', name):
379 elif re.match(r'.*\.[123]$', name):
386 if re.search(r'troff', m):
388 elif re.search(r'C source', m):
390 elif (re.search(r'POSIX shell script', m) or
391 re.search(r'Bourne-Again shell script', m) or
392 re.search(r'Python script', m) or
393 re.search(r'Perl script', m) or
466 m = re.match(pat, line, re.I)
470 if re.match(r'(19[89][0-9]|2[0-2][0-9][0-9]).*', line):