I am working on a project where I need to parse a bunch of user text that comes in different fields. The problem is that the user input doesn't always come in on the same fields. One user might have a name in field 3 and a date in field 5, while another user might have names in fields 1 and 2, and a date in field 3. The first thing my code needs do is figure out what type of information is in what field.
I don't want to reinvent the wheel. Has anyone come across some open source code that already does this, maybe as part of a larger program? Specifically, something like IsItAName(str) and IsItADate(str) would be awesome.