in reply to Re: Getting From here to an Array
in thread Getting From here to an Array

Thanks so much. The code you provide solved many of my questions. However it then opened up another dilemma. The line:  if ( /^R[A-Z]\d{5}$/ ) works great unless the text in question reads:

Projections of FY2009 Federal SCHIP Allotments Under CHIPRA 2009

If my "text" ends with a date then the subsequent lines all join until the code finds another string of text that also ends in a date. In this case both lines happen to end in 2009.

Replies are listed 'Best First'.
Re^3: Getting From here to an Array
by ikegami (Patriarch) on Jan 17, 2009 at 23:49 UTC

    The line: if ( /^R[A-Z]\d{5}$/ ) works great unless the text in question reads:

    I don't see the relevance of the example text you posted. That line is suppose to match the order number. He did make assumptions as to what the order number looked like, but that doesn't seem to be what you're questioning.

Re^3: Getting From here to an Array
by jdporter (Paladin) on Jan 18, 2009 at 03:25 UTC

    Thanks. Yes, you're right. I made an assumption based on the data I saw. You are certainly free (and expected) to modify the code as necessary. Even better, learn from it and then write your own code. :-)

    Between the mind which plans and the hands which build, there must be a mediator... and this mediator must be the heart.