Today I Learned

tags


2026/05/14

I had no idea that

in e.g. .NET, python, and rust, the default \d matches Unicode digits (~370 digits in .NET, ~770 in Rust), not just ASCII 0-9. that includes Eastern Arabic (٠١٢٣), Devanagari (०१२३), Fullwidth (0123), and many others.

https://iev.ee/blog/what-262715-regex-questions-havent-answered/#:~:text=in%20e%2Eg,others