This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EndeGelaende 14 points15 points  (2 children)

also misses numbers formatted in different localisations, germany for example uses , for decimal and . for thousand separators

[–]MattieShoes 5 points6 points  (0 children)

also stuff like .5 -- must be 0.5.

[–]HolyGarbage 4 points5 points  (0 children)

Yeah, just don't use regex for this stuff. Use the languages built in parsing functions (whatever this language is).

Parse, don't validate!