+ 3
What is the difference between r"gr(a|e)y" and r"gr[ae]y"
2 Respostas
+ 9
Semantically nothing, but the character class regex r"gr[ae]y" would likely be more efficient as it doesn't cache the back reference needed to return group(1).
0
perfect answer