Mailing List Message #6443
From: Patric Malm <>
Subject: Re: Accounf file format
Date: Fri, 7 Jul 2000 19:36:43 +0200
To: SIMS Discussions <>
At 17:28 7/7/2000 +0200, you wrote:
In regex notation the mailbox file looks like this:

 >>(^From .*\r(.+\r)*\r(.*\r)*\r)*
 >>   ^        ^       ^        ^


Then something is wrong with your regex implementation.

(^From .*\r  -> This should grab a SINGLE line.  In English it says, "look
for the string 'From ' at the start of a line and then grab it and any
other characters up to a return."

After that I start to get a little lost myself.  I believe this part:


is grabbing any number of characters until there are two consecutive line
feeds and storing them.

(.+\r) is one or more characters ending with a return, and the *\r says 0
or more instances of the previous expression.

Ok, now im even more confused.. =)

Your suggestion should be... ? :-)

- Patric Malm    <- Din tekniker på äpplet      -
- ApplePaj AB       <- Din Mac-specialist NY SIDA! -
- MacNytt       <- Din Mac-community           -
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster