[lang-ref] ( regexp_find_all ) ( python )
def test_regexp_find_all():
# findall(pattern, text)
text = 'abcdef abcdef abcdef'
pattern = r'd.f'
m = re.findall(pattern, text)
assert len(m) == 3
assert m[0] == 'def'
# Note: If you need match positions, use re.finditer().