Journal entries pattern filter?

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

Journal entries pattern filter?

Postby PJay » Tue Dec 13, 2005 10:20 pm

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: 2138
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Postby DataMystic Support » Wed Jan 04, 2006 8:19 am

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.
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

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

Postby PJay » Fri Jan 06, 2006 9:19 am

Thanks Simon, I'll give that a go!


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 2 guests