We need a simple PHP code that can find contact & event information in a given text and convert these to xml.
The text format is free form English, thus there are no markings in the text. For example, the given text can be "John Example 551-5532" or "14310 North Dale Mabry Hwy
Suite #280
Tampa, FL 33618
USA
Phone: (813) 908-9029
Fax: (813) 960-1495"
The vcalendar entries can be "Text 01/12/2007 Text"
See below for the exact set of formats we need to support.
## Deliverables
Formats:
Telephone numbers:
5555555
555 5555
555-5555
+1 408 555 5555
[+1] (408) 555-5555
4085555555
408 555 5555
408 555-5555
408-555-5555
Addresses:
123 Sample Street apt. #32, Portland OR 91021
123 Example Avenue, Suite 315, Los Altos, CA 91021, USA
These can be in multiple lines
Names:
"Mr. Charles de Gaulle, Sr." or "Mr. de Gaulle, Charles Sr."
Only the following titles need to be supported: Dr. Mr. Miss Mrs. Ms. Prof.
Only the following suffixes need to be supported: I II III Jr. Sr.
Only the following family name affixes need to be supported:ab aan ap abu al ben bij bin d' Da de Degli Della Di Du Fitz Nic Mac Mc het ibn O' ter tre van vanden ver voor von.
Date formats for events:
2/20/2007
Tuesday, February 20, 2007
20 February 2007
February 20, 2007
February 20th, 2007
2/20/07
2007-02-20
2.20.2007
Feb. 20, 07
20 February 2007
February 07
Feb-07
2/20/2007 1:39 PM
2/20/2007 1:39PM
2/20/2007 1:40:07 PM
2/20/2007 1:40:07PM
--
There are also three referential cases based on today's date.
tomorrow at 3:15
Tuesday at 3:15
on 21st at 3:15pm
where the time can be
1:40:15 PM
13:40
13:40:32
--
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
PHP 5.x