Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)
Compile a regular expression pattern, returning a pattern object.

        def compile(pattern, flags=0):
    "Compile a regular expression pattern, returning a pattern object."
    return _compile(pattern, flags)
        


src/e/x/execnet-1.2.0/doc/example/sysinfo.py   execnet(Download)
def parsehosts(path):
    path = py.path.local(path)
    l = []
    rex = py.std.re.compile(r'Host\s*(\S+)')
    for line in path.readlines():

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/doc/tool/makeref.py   plexnet(Download)
def makeref(docdir):
    reffile = docdir.join('_ref.txt') 
 
    linkrex = py.std.re.compile('`(\S+)`_')
 

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/rest/rst.py   plexnet(Download)
    defaults = {}
 
    _reg_whitespace = py.std.re.compile('\s+')
 
    def __init__(self, *args, **kwargs):

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/rest/convert.py   plexnet(Download)
    def gen_png(self):
        tempdir = py.path.local.mkdtemp()
 
        re_bbox = py.std.re.compile('%%BoundingBox:\s*(\d+) (\d+) (\d+) (\d+)')
        eps = self.eps.read()

src/s/y/Sypy-HEAD/tool/rest/rst.py   Sypy(Download)
    defaults = {}
 
    _reg_whitespace = py.std.re.compile('\s+')
 
    def __init__(self, *args, **kwargs):

src/s/y/Sypy-HEAD/doc/tool/makeref.py   Sypy(Download)
def makeref(docdir):
    reffile = docdir.join('_ref.txt') 
 
    linkrex = py.std.re.compile('`(\S+)`_')
 

src/t/o/tox-1.7.1/tox/_cmdline.py   tox(Download)
 
 
_rex_getversion = py.std.re.compile("[\w_\-\+\.]+-(.*)(\.zip|\.tar.gz)")
def getversion(basename):
    m = _rex_getversion.match(basename)

src/n/u/nupic-linux64-HEAD/lib/python2.6/site-packages/_pytest/main.py   nupic-linux64(Download)
EXIT_USAGEERROR = 4
 
name_re = py.std.re.compile("^[a-zA-Z_]\w*$")
 
def pytest_addoption(parser):

src/p/y/pytest-2.5.2/_pytest/main.py   pytest(Download)
EXIT_USAGEERROR = 4
 
name_re = py.std.re.compile("^[a-zA-Z_]\w*$")
 
def pytest_addoption(parser):

src/a/n/anyvc-0.3.7.1/tests/repository/test_history.py   anyvc(Download)
 
    if not isinstance(head.id, int):
        hre = py.std.re.compile('\w+')
        assert hre.match(head.id), 'rev id is messed goo %r'%head.id