perl regex

Trent Shipley plug-discuss@lists.plug.phoenix.az.us
Wed, 26 Mar 2003 15:33:53 -0700


Assume that ':' and ',' are reserved tokens.

Then each field-name has the form:
foo:  
# where foo is the field-name proper.  The important detail is non-blank 
printing characters terminated with ':'.

Also each datum has the form
: bar,
or possibly
:bar,
or even
:               bar,
# that is a datum can only be in an environment delimited by ':' followed by 
any amount of whitespace followed by data followed by ','.

A record has the form:

foo0: bar0, foo1: bar1, ... , fooN: barN\n

# remember to trim whitespace from left side of these fooS
,     fooX:






On Wednesday 2003-03-26 14:33, Mike Starke wrote:
> David is right, I probably should have included more accurate
> data than my original message.
>
> Here is a line:
> ---------------------------------------------------
> TYPE: AL ADHC, SUBTYPE: ADULT DAY HEALTH CARE, ID: AL2905, LICENSE:
> ADHC-2838, NAME: MARY'S PLACE ADULT DAY CENTER, LEGALLY: MARY'S PLACE ADULT
> DAY CENTER, ADDRESS: 14601 DEL WEBB  BLVD, CITY: SUN CITY, STATE: AZ, ZIP:
> 85351, TELEPHONE: (623)584-4999, FAX: , CAPACITY: , COUNTY: MARICOPA
> ---------------------------------------------------