The regexp for this would be (Not tested):

"=============STAMP:\s+(\d{4}/\d{2}/\d{2}\s+\d{2}:\d{2}/:d{2}).?*\n(.*?)
\s*(:=(=============STAMP:|$))"

You would be looking for the first and second group.
There are no spaces in the regexp, so watch out for wrap.
I have posted numerous examples on this list on how to loop over a
string and extract subgroups from an _expression_. I'm just installing a
new laptop, so I don't have the code available right now. Iposted a
function on cflib to do it, but it hasn't been approved yet.

Pascal

-----Original Message-----
From: Kyle Murphy [mailto:[EMAIL PROTECTED]
Sent: 01 July 2004 21:20
To: CF-Talk
Subject: string parsing

I have a column of data that I need to parse through to create separate
journal entries.  

Does anyone have some idea on how I can do this?  I'm stumped.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to