0

What is the function of the "
quot; in sentence: "[01]+0
quot;?

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.

29th May 2019, 11:40 PM
Maikon Keslley
Maikon Keslley - avatar
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
30th May 2019, 12:20 AM
Diego
Diego - avatar
+ 1
I'm grateful. It will help me a lot 😄 thank you
30th May 2019, 2:33 AM
Maikon Keslley
Maikon Keslley - avatar