Skip to content

Instantly share code, notes, and snippets.

View gdlfr's full-sized avatar
💻
×

Alexander Avdeev gdlfr

💻
×
View GitHub Profile
import re
pattern = r"a(bc)(de)(f(g)h)i"
match = re.match(pattern, "abcdefghijklmnop")
if match:
print(match.group())
print(match.group(0))
print(match.group(1))
print(match.group(2))