Page 1 of 1

Journal entries pattern filter?

Posted: Tue Dec 13, 2005 10:20 pm
by PJay
Hi all,

I have a journal.txt file that is in the following format:
Tuesday December 6 2005, 6:05 PM - [Subject]
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium.

totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.

Tuesday December 6 2005, 6:11 PM - [Subject]
Sed quia non numquam eius modi tempora incidunt....
I need to extract the following variables from this but as close am I've got I can't come up with a pattern definition to do it!

The variables I want to extract are shown in <> :
<Tuesday> <December> <6> <2005>, <6:11 PM> - [<Subject>]
<Sed quia non numquam eius modi tempora incidunt....>
Any help would be greatly appreciated!



Posted: Wed Jan 04, 2006 8:19 am
by DataMystic Support
Try an EasyPattern:

[ capture( day), ' ', capture(MonthName), ' ', capture(day), ' ',
capture(year) .... ]

etc. You'll have to check the EasyPattern reference to check those pattern names.

Posted: Fri Jan 06, 2006 9:19 am
by PJay
Thanks Simon, I'll give that a go!