0
What is the function of the "quot; in sentence: "[01]+0quot;?
When I were learning about pattern in Python that problem seems. But I still don't understand nothing after "+". I hope someone can help me to understand that question.
2 Answers
+ 2
The character "quot; matches the end of the string.
Your pattern will match any string that ends with one or more repetitions of [1 or 0] followed by a 0.
For example, it will match "1010", "100", "4210", "4200", but not "1011", 1001", "4212", "10042".
https://docs.python.org/3/library/re.html#index-2
+ 1
I'm grateful. It will help me a lot đ thank you