Hiya!!

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


In reply to Date pattern matching by Rpaguilar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.