Skip to content

Comment on \d less efficient than [0-9]

Comments

Interesting to see these missing, which are 1 and 1, respectively: [一, 壹]

I think that's because they are treated as words, rather than digits. The same way that \d won't match "einz".

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.