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)
except NameError: # missing
pass
try: # callable-iterator
from re import finditer
s.append(finditer('', ''))
except ImportError: # missing
pass
src/t/o/topographica-HEAD/topographica/topo/misc/asizeof.py topographica(Download)
except NameError: # missing
pass
try: # callable-iterator
from re import finditer
s.append(finditer('', ''))
except ImportError: # missing
pass
src/i/t/itools-HEAD/html/filters.py itools(Download)
# along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from the Standard Library from re import finditer # Import from itools from itools.xml import XMLParser, START_ELEMENT, END_ELEMENT, COMMENT
# Check CSS
elif attr_name == 'style':
# TODO Clean attribute value instead
for m in finditer(r'url\s*\(([^)]+)', attr_value):
href = m.group(1)
if ':' in href:
scheme = href.split(':')[0]
src/t/o/topographica-0.9.7/topo/misc/asizeof.py topographica(Download)
except NameError: # missing
pass
try: # callable-iterator
from re import finditer
s.append(finditer('', ''))
except ImportError: # missing
pass
src/p/y/Pympler-0.1/pympler/asizeof/asizeof.py Pympler(Download)
except NameError: # missing
pass
try: # callable-iterator
from re import finditer
s.append(finditer('', ''))
except ImportError: # missing
pass