Well, 

If I'm reading your question right...you'd want to lock and 
pop open the file(s) and sift for something like:
[0-3]\{0,1}[0-9]/s[/April//Apr//August/...]/s[0-9]\{4\}/s([aAbB]\.\{0, +1}[cCdD]\.\{0,1})*
My regex isn't awesome...but that should look for chunks that
begin with zero to one instances of 0-3, followed by a 0-9,
followed by a space, followed by that list of months {which is
the one section I'm a lot fuzzy on.} then followed by a space
and four consecutive digits 0-9 and then followed entirely by 
that last chunk that looks for zero or more instances of A.D.,
AD, a.d., ad, B.C., BC, b.c., and bc.{Although I haven't tried
it, either...I'm trying freehand on it, but it's a start.}

_If_ I'm reading you right.

Then you'd take that matched bit and dump it to your opened
output file until you had no more input file to munge. Close
your files and unlock them and you'd be done.

If you knew what date formats to expect, you could fiddle 
with the regex a bit, ditching the ad/bc part if unnecessary
or shortening the month listing to either full months or the
abbreviated ones.

just my shot at it.

-brick.

In reply to Re: Date extraction by brick
in thread Date extraction by Perl-chick

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.