News for hackers. Stuff that matters.
Re:Common Regular Expressions Made Simple by ygra on Tuesday December 17, 2013 @07:26AM (#6920717)
It's not validation in this case, it's finding them in a body of text. For validation you generally have it easier because you often only deal with a single datum in a field (and thus string).
Re:Common Regular Expressions Made Simple by masklinn on Tuesday December 17, 2013 @08:02AM (#6920850)
The CLDR provides locale-specific formats for some datum types (IIRC numbers, dates, and durations). These formats can probably be reversed into the corresponding regular expression in order to perform locale-aware data detection.

Of course further complexity is added in people being able to provide partial and context-dependent information, which is much harder to detect e.g. "December 3rd"