3 ms·
> your should use a character class That depends on locale. Is "1,222" 1222 or 1.222?
by IsTom 2y ago
> your should use a character class
That depends on locale. Is "1,222" 1222 or 1.222?
- account42 2y agoBut it definitely should not be the global process locale if you are parsing something that doesn't originate from the user's environment (and even then using something fixed like en_US or the saner en_DK unless a locale is explicitly requirested for the invocation makes sense).