On Fri, 15 Jan 2016 14:20:17 +0100, Wolfgang Maier wrote: > pattern = pattern_str.compile() > try: > matches = pattern.findall(some_str, endpos=some_str.index(tail)) > except ValueError: > # do something if tail is not found > pass
Oh! I think that's it!
matches = findall (pattern, string)
for file in matches:
use (file)
Totally cool! Thank you.
--
https://mail.python.org/mailman/listinfo/python-list
