Date parsing



Hi,
I need to split the input data based on lines that start with a valid
date.

Example:

Input:

1/2/03:note 1
note 2 note 3
01/2/2004 another note
note line2
note line3
5-03-99 this is a note from 1999

Output:

Date: 1/2/03
note1
note2 note3

Date: 01/2/2004
another note
note line2
note line3

Date: 5-03-99
this is a note from 1999

This is tricky because dates can be in different formats (1 digit month
instead of 2, for example). Is there any easy way to do this in Perl?

Thanks,
Glenn

.



Relevant Pages

  • Re: Date parsing
    ... > I need to split the input data based on lines that start with a valid ... Prev by Date: ...
    (comp.lang.perl.misc)
  • if
    ... I can't work out what functions to use in the calculation field setup. ... I want to be able to input data into B.content ... Prev by Date: ...
    (comp.databases.filemaker)
  • Question
    ... this yellow table is the source data: ... the green numbers are my input data and blue one are output data: ... A-Design ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • Input to populate report worksheet
    ... I am trying to figure the best way to allow a user to input data into ... Excel and then have the data inserted as rows into a worksheet. ... victorcab's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=13675 ... Prev by Date: ...
    (microsoft.public.excel.worksheet.functions)
  • Large customizable input form using WordML
    ... Can I present a WordML form as Webpage ... properly and users should be able to input data. ... Jobi K Joy ... Prev by Date: ...
    (microsoft.public.dotnet.xml)