paths[bbb,bbb123ccc]result[]for fname in paths:match1re.search(bbb, fname)match2re.search(ccc, fname)