开发者

A java library for identifying data types in text

开发者 https://www.devze.com 2023-03-19 03:19 出处:网络
I have some structured text. I want to identify if a value is a number, date, spatial coordinate, plain text, uri etc. I can of course write my own solution.

I have some structured text. I want to identify if a value is a number, date, spatial coordinate, plain text, uri etc. I can of course write my own solution.

开发者_StackOverflow社区

But I was wondering if there is a solid library out there that would do all this and maybe more. Dates are a particular hassle they can be written so many ways all of which are legitimate.

For numbers there is ...commons.lang.math.NumberUtils.isNumeric()

Something similar for the others would be helpful.

0

精彩评论

暂无评论...
验证码 换一张
取 消