понятнее)
"{ 4 char a, b }" # []
"{ 4 char a }"
"{ 4 char from a to d }"
"{ any char from a to d }" # [a-d]
"{ any char from A to D }" # [A-D]
"{ any char from a to d insensitive }" # [a-zA-Z]
"{ any char from a to z insensitive }" # [a-zA-Z]
"{ any char }" # [a-zA-Z]
"{ any char; number; char _ }" # [a-zA-Z0-9_]
"{ any char; number 4-9; char _ }" # [a-zA-Z4-9_]
"{ not any char from a to d }" # [^a-d]
# Repeating
"a{ any char b, c, d }b" # a[bcd]*b
"a{ some char b, c, d }b" # a[bcd]+b
"a{ maybe char b, c, d }b" # a[bcd]?b
"a{ from 4 to 5 char b, c, d }b" # a[bcd]{4,5}b
"a{ from 4 char b, c, d }b" # a[bcd]{4,}b
"a{ to 5 char b, c, d }b" # a[bcd]{,5}b
# Special characters
r"\special" # \\special
моё почтение
Обсуждают сегодня