I found that in 123, \\d matches 1 and 3 but not 2. I was wondering if \\d matches a digit sati
123
\\d
1
3
2
[0-9] is not always equivalent to \d. In python3, [0-9] matches only 0123456789 characters, while \d matches [0-9] and other digit characters, for example Eastern Arabic numerals ٠١٢٣٤٥٦٧٨٩.
[0-9]
\d
0123456789
٠١٢٣٤٥٦٧٨٩