Hey,
I have a file stored in the following format:
From: SomeOne
Date: dd/mm/yyyy, time
Details: blah blah
From: SomeOneElse
Date: dd/mm/yyy, time
Details: more blah
...
What I am trying to do is extract the last Date: line from this file. There are no guarantees on the number of lines of the Details: part...
I am trying to use regular expression to match all the Date lines and add 'em to an array and get the last one. But can't quite get it.
Any help appreciated..
Anticore...
I have a file stored in the following format:
From: SomeOne
Date: dd/mm/yyyy, time
Details: blah blah
From: SomeOneElse
Date: dd/mm/yyy, time
Details: more blah
...
What I am trying to do is extract the last Date: line from this file. There are no guarantees on the number of lines of the Details: part...
I am trying to use regular expression to match all the Date lines and add 'em to an array and get the last one. But can't quite get it.
Any help appreciated..
Anticore...