Journal entries pattern filter?

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
PJay
Posts: 4
Joined: Tue Dec 13, 2005 9:47 pm

Journal entries pattern filter?

Post 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!

Thanks

PJay
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post 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.
PJay
Posts: 4
Joined: Tue Dec 13, 2005 9:47 pm

Post by PJay »

Thanks Simon, I'll give that a go!
Post Reply