• ¯\_(ツ)_/¯

Marrec immadur de 25 anys. M'agrada parlar català, but I can also write stuff in English. A veces, español. Programo, faig de TO pel Rivals of Aether i soc organitzador de la site de Barcelona de la Global Game Jam.


Recently found out that the regex macro \d is not actually the same as [0-9], because, depending on the implementation, it might also decide to include every single number from all of unicode, which includes, but is not limited to:

0٠۰߀०০੦૦୦௦౦೦൦๐໐0
1١۱߁१১੧૧୧௧౧೧൧๑໑1
2٢۲߂२২੨૨୨௨౨೨൨๒໒2
3٣۳߃३৩੩૩୩௩౩೩൩๓໓3
4٤۴߄४৪੪૪୪௪౪೪൪๔໔4
5٥۵߅५৫੫૫୫௫౫೫൫๕໕5
6٦۶߆६৬੬૬୬௬౬೬൬๖໖6
7٧۷߇७৭੭૭୭௭౭೭൭๗໗7
8٨۸߈८৮੮૮୮௮౮೮൮๘໘8
9٩۹߉९৯੯૯୯௯౯೯൯๙໙9��

I have decided that from now on I am never using \d ever again.


List stolen from this stack overflow thread


You must log in to comment.