I am building a small app that reuires some clever text pattern
In my controller, I’ll have a string that I will want to parse out to a
datetime and a message, a la Google C. Quick Add.
10/30/2006 7pm message
10-30-96 7:00 pm message
10/30/2006 19:00pm message
You see what I’m getting at. For a v1.0 release, I CAN publish some
standards for users to adhere to regarding how the string should look,
but I’m wondering how some more experienced programmers might attack
this problem, from a high level view. What do you initially look for,
what do you delimit on, how do you break the string up, etc.
Would love some feedback, many thanks in advance!