• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(446)  |  Call(441)  |  Derive(0)  |  Import(5)
Return an iterator over all non-overlapping matches in the
string.  For each match, the iterator returns a match object.

Empty matches are included in the result.

            def finditer(pattern, string, flags=0):
        """Return an iterator over all non-overlapping matches in the
        string.  For each match, the iterator returns a match object.

        Empty matches are included in the result."""
        return _compile(pattern, flags).finditer(string)
        


src/r/e/reporter-lib-HEAD/packages/sqlalchemy/examples/elementtree/optimized_al.py   reporter-lib(Download)
def find_document(path, compareto):
    j = documents
    prev_elements = None
    query = session.query(Document)
    first = True
    for i, match in enumerate(re.finditer(r'/([\w_]+)(?:\[@([\w_]+)(?:=(.*))?\])?', path)):
        (token, attrname, attrvalue) = match.group(1, 2, 3)

src/r/e/reporter-lib-HEAD/packages/sqlalchemy/examples/elementtree/adjacency_list.py   reporter-lib(Download)
def find_document(path, compareto):
    j = documents
    prev_elements = None
    query = session.query(Document)
    attribute = '_root'
    for i, match in enumerate(re.finditer(r'/([\w_]+)(?:\[@([\w_]+)(?:=(.*))?\])?', path)):
        (token, attrname, attrvalue) = match.group(1, 2, 3)

src/d/a/dacp-HEAD/examples/dacp.py   dacp(Download)
	def array(self, tag):
		q = []
		for m in re.finditer(tag, self._raw):
			p = m.start()
			l = struct.unpack('>I', self._raw[p + 4:p + 8])[0]
			q += [Parser(self._raw[p + 8:p + 8 + l])]
 

src/s/q/sqlalchemy-HEAD/examples/elementtree/optimized_al.py   sqlalchemy(Download)
def find_document(path, compareto):
    j = documents
    prev_elements = None
    query = session.query(Document)
    first = True
    for i, match in enumerate(re.finditer(r'/([\w_]+)(?:\[@([\w_]+)(?:=(.*))?\])?', path)):
        (token, attrname, attrvalue) = match.group(1, 2, 3)

src/s/q/sqlalchemy-HEAD/examples/elementtree/adjacency_list.py   sqlalchemy(Download)
def find_document(path, compareto):
    j = documents
    prev_elements = None
    query = session.query(Document)
    attribute = '_root'
    for i, match in enumerate(re.finditer(r'/([\w_]+)(?:\[@([\w_]+)(?:=(.*))?\])?', path)):
        (token, attrname, attrvalue) = match.group(1, 2, 3)

src/s/q/SQLAlchemy-0.6.4/examples/elementtree/optimized_al.py   SQLAlchemy(Download)
def find_document(path, compareto):
    j = documents
    prev_elements = None
    query = session.query(Document)
    first = True
    for i, match in enumerate(re.finditer(r'/([\w_]+)(?:\[@([\w_]+)(?:=(.*))?\])?', path)):
        (token, attrname, attrvalue) = match.group(1, 2, 3)

src/s/q/SQLAlchemy-0.6.4/examples/elementtree/adjacency_list.py   SQLAlchemy(Download)
def find_document(path, compareto):
    j = documents
    prev_elements = None
    query = session.query(Document)
    attribute = '_root'
    for i, match in enumerate(re.finditer(r'/([\w_]+)(?:\[@([\w_]+)(?:=(.*))?\])?', path)):
        (token, attrname, attrvalue) = match.group(1, 2, 3)

src/s/e/sepy-HEAD/core/ui/panels/workspace/__init__.py   sepy(Download)
 
        pattern_1 = core.system.patterns.cmd_arg_firstpass
 
        g = re.finditer(pattern_1, command_args, re.I|re.U)
        if g:
            for value in g:
                wtype = core.ui.dialogs.workspace.WIDGET_TYPE_TEXT
                    wtype = core.ui.dialogs.workspace.WIDGET_TYPE_DIR
                dlg.Add(value.groupdict().get("name"), svalue, 1, wtype)
 
        g = re.finditer(pattern_1, command_cwd, re.I|re.U)
        if g:
            for value in g:
                wtype = core.ui.dialogs.workspace.WIDGET_TYPE_TEXT

src/s/e/sepy-HEAD/core/documents/editor.py   sepy(Download)
            functionList = []
            return "",[]
        if Editor.IsDeleted(self): return True
        imported_class = re.finditer(core.system.patterns.i_pattern, self.GetText(), re.IGNORECASE|re.UNICODE|re.MULTILINE)
        if imported_class:
            while 1:
                if Editor.IsDeleted(self): return True

src/s/e/sepy-HEAD/SEPY.py   sepy(Download)
                dlg = core.ui.dialogs.workspace.CommandOptionsDialog(self, -1)
                dlg.SetTitle(name)
                pattern_1 = core.system.patterns.cmd_arg_firstpass
                g = re.finditer(pattern_1, command_args, re.I|re.U)
                if g:
                    for value in g:
                        wtype = core.ui.dialogs.workspace.WIDGET_TYPE_TEXT
                            wtype = core.ui.dialogs.workspace.WIDGET_TYPE_DIR
                        dlg.Add(value.groupdict().get("name"), svalue, 1, wtype)
 
                g = re.finditer(pattern_1, command_cwd, re.I|re.U)
                if g:
                    for value in g:
                        wtype = core.ui.dialogs.workspace.WIDGET_TYPE_TEXT

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next