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

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

SNIP


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:

(.+\r)*\r

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... ? :-)
--

- MVH
- Patric Malm  http://patric.applepaj.se    <- Din tekniker på äpplet      -
- ApplePaj AB  http://www.applepaj.se       <- Din Mac-specialist NY SIDA! -
- MacNytt      http://www.macnytt.com       <- Din Mac-community           -
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster