Searched refs:re (Results 1 - 25 of 54) sorted by relevance

123

/pkg/src/modules/
H A Dchoose.py9 import re namespace
18 # Setting the flag to re.I makes the regexp match using case
21 flag = re.I
22 match = re.compile(fnmatch.translate(pat), flag).match
H A Dmediator.py25 import re namespace
37 if re.match("^[a-zA-Z0-9\-]+$", value):
110 if not error and iname and re.match("^[a-zA-Z0-9\-]+$", iname):
H A Dmogrify.py29 import re namespace
56 attrdict[a] = re.compile(attrdict[a])
57 except re.error as e:
191 regexp = re.compile(args[1])
194 except re.error as e:
219 rx = re.compile(substitute_values(regexp,
229 except re.error as e:
253 regexp = re.compile(args[1])
254 except re.error as e:
275 except re
[all...]
H A D_varcet.c98 PyObject *re = PyDict_GetItem(res, key); local
99 PyObject *match = PyObject_CallMethod(re,
H A Dcfgfiles.py34 import re namespace
60 self.comment_regexp = re.compile(comment_match)
446 cols = re.split("(?<=[^\\\\]):", line) #match non-escaped :
451 attributes=re.split("(?<=[^\\\\]);", cols[4]) # match non escaped ;
455 a = re.split("(?<=[^\\\\])=", attr)
463 c = template.copy() # since we're mucking w/ this....
H A Dfmri.py28 import re namespace
47 re.compile("^[A-Za-z0-9][A-Za-z0-9_\-\.\+]*(/[A-Za-z0-9][A-Za-z0-9_\-\.\+]*)*$")
534 m = re.match(fmristr, self.pkg_name)
560 valid_pkg_name = re.compile("^[A-Za-z0-9_/\-\.\+\*\?]*$")
580 return re.search(pattern, pkg_name)
H A Dfacet.py30 import re namespace
137 facet sources (local vs parent) and names, we're essentially
168 # check if we're getting compared against something other than
188 # still possible that we're changing the set of local or
285 self.__res[item] = re.compile(fnmatch.translate(item))
341 self.__res[item] = re.compile(fnmatch.translate(item))
/pkg/src/modules/portable/
H A Dutil.py27 import re namespace
84 return '.'.join((re.sub('[^0-9]', ' ', release)).split())
/pkg/src/util/log-scripts/
H A Dan_first_timestamp.py34 import re namespace
40 comb_log_pat = re.compile("(?P<ip>[\d\.]*) - - \[(?P<date>[^:]*):(?P<time>\S*) (?P<tz>[^\]]*)\] \"(?P<op>GET|POST|HEAD|\S*) (?P<uri>\S*) HTTP/(?P<httpver>[^\"]*)\" (?P<response>\d*) (?P<subcode>\d*|-) \"(?P<refer>[^\"]*)\" \"(?P<agent>[^\"]*)\"")
H A Dan_filelist.py34 import re namespace
50 pkg_pat = re.compile("/filelist/(?P<mversion>\d+)/(?P<trailing>.*)")
H A Dlog.py31 import re namespace
48 m = re.match(ex, l)
H A Dan_manifest.py33 import re namespace
53 pkg_pat = re.compile("/manifest/(?P<mversion>\d+)/(?P<stem>[^@]*)@(?P<version>.*)")
H A Dan_search.py33 import re namespace
52 pkg_pat = re.compile("/search/(?P<mversion>\d+)/(?P<keywords>.*)")
H A Dan_ip_active.py34 import re namespace
H A Dan_report.py34 import re namespace
42 comb_log_pat = re.compile("(?P<ip>[\d\.]*) - - \[(?P<date>[^:]*):(?P<time>\S*) (?P<tz>[^\]]*)\] \"(?P<op>GET|POST|HEAD|\S*) (?P<uri>\S*) HTTP/(?P<httpver>[^\"]*)\" (?P<response>\d*) (?P<subcode>\d*|-) \"(?P<refer>[^\"]*)\" \"(?P<agent>[^\"]*)\" \"(?P<uuid>[^\"]*)\" \"(?P<intent>[^\"]*)\"")
45 browser_agent_pat = re.compile(".*X11; U; SunOS (?P<arch>[^;]*); (?P<lang>[^;]*)")
46 pkg_agent_pat = re.compile("pkg/(?P<pversion>\S*) \((?P<pos>\S*) (?P<arch>[^;]*); (?P<uname>\S*) (?P<build>[^;]*); (?P<imagetype>[^)]*)\)")
98 # Countries we're not allowed to report on (iran, north korea)
H A Dan_catalog.py54 import re namespace
/pkg/src/tests/api/
H A Dt_sysattr.py32 import re namespace
42 p_re = re.compile("{(?P<attrs>.*)}")
45 m = re.search(p_re, self.output)
H A Dt_elf.py33 import re namespace
78 p = re.sub("__ARCH__", arch, p)
/pkg/src/tests/cli/
H A Dt_pkg_help.py32 import re namespace
115 m = re.search(r"ja_JP.eucJP", line)
H A Dt_pkg_history.py35 import re namespace
153 re.search("START\s+", o.splitlines()[0]) == None)
190 re.search("purge-history", o.splitlines()[0]) != None)
288 re.search("START\s+", o.splitlines()[0]) == None)
565 new_file = re.sub(".xml", "99.xml", latest)
H A Dt_pkg_nasty.py36 import re namespace
98 self.testpkgs.append(re.sub("__SUB__", pkgname,
100 self.testpkgs.append(re.sub("__SUB__", pkgname,
135 # since we're depending on knowing the internal layout
/pkg/doc/dev-guide/
H A DMakefile153 gsed -re 's#\*\*(Chapter [0-9]+)\*\*#`\1`_#g' | \
154 gsed -re 's#\*(Chapter [0-9]+)\*#`\1`_#g' | \
155 gsed -re 's#\*\*(Appendix [AB])\*\*#`\1`_#g' | \
156 gsed -re 's#\*(Appendix [AB])\*#`\1`_#g' > $(PROTO)/book.txt
/pkg/src/tests/
H A Drun.py191 import re namespace
229 pats = [ re.compile("{0}".format(pat), re.IGNORECASE) for pat in testpats ]
230 startatpat = re.compile("{0}".format(startattest), re.IGNORECASE)
313 if re.search(startatpat, full):
319 [ re.search(pat, full) for pat in pats ],
/pkg/src/modules/flavor/
H A Dpython.py28 import re namespace
150 py_bin_re = re.compile(
152 py_lib_re = re.compile(r"^usr/lib/python(?P<major>\d+)\.(?P<minor>\d+)/")
/pkg/src/modules/client/
H A Dprintengine.py35 import re namespace
96 self.__putp_re = re.compile(r"\$<[0-9]+>")
161 # the flush entrypoint. If we're partially through
195 """If we're in the middle of writing a line, this tries to
298 # If we're not in ttymode, then the testing is simple.

Completed in 161 milliseconds

123