return current[n]
s = 'Mary had a little lamb'
d = {}
regs = ['.*', 'Mary', 'lamb', 'little lamb', '.*little lamb', '\\b\\w+mb',
    'Mary.*little lamb', '.*[lL]ittle [Ll]amb', '\\blittle\\b', s, 'little',
    '^.*lamb', '.*.*.*b', '.*?.*', '.*\\b[lL]ittle\\b \\b[Ll]amb',
    '.*\\blittle\\b \\blamb$', '^' + s + '$']
for reg in regs:
    m = re.search(reg, s)
if m:
    pass
Соответствие 2 регулярным выражениям в Python