Rpaguilar has asked for the wisdom of the Perl Monks concerning the following question:
I'm currently starting with Perl and I have a problem that I can't find solution. I have a simple html form with a text field and a submit and reset button. When the form is submitted the text in the text area should be displayed as a web page, but with all dates changed that you write in the text area from numeric to word format. Dates in numeric form have three numeric parts (day, month and year) separated by a separator, either "/" or "-". Examples of acceptable numeric dates are 8/11/99, 01/01/00, 1-5-2001. These should be converted to 8th November 1999, 1st January 2000 and 1st April 2001. It should make a suitable rule for determining the centuary for two digit years. You may assume that a date does not split across two lines but note that one line may contain several dates. Also it needs to create a suitable test data, which should be either the default text in the textarea, or which is entered into the text area by clicking a button on the form.
If you could help me with a simple script please let me know.
###############################################################
Seeking for wisdom,
Regards,
Ricardo
edit (broquaint): added formatting and removed some #s
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Date pattern matching
by sharkey (Scribe) on Oct 31, 2002 at 20:08 UTC | |
|
Re: Date pattern matching
by artist (Parson) on Oct 31, 2002 at 19:26 UTC | |
by Rpaguilar (Initiate) on Oct 31, 2002 at 19:55 UTC | |
by artist (Parson) on Oct 31, 2002 at 20:04 UTC | |
by Rpaguilar (Initiate) on Oct 31, 2002 at 20:22 UTC | |
by tomhukins (Curate) on Nov 03, 2002 at 21:20 UTC | |
by John M. Dlugosz (Monsignor) on Oct 31, 2002 at 23:11 UTC | |
by rdfield (Priest) on Nov 01, 2002 at 09:42 UTC | |
by Aristotle (Chancellor) on Oct 31, 2002 at 20:06 UTC |