On 9/26/20 at 5:16 PM,
pkau...@gmail.com (Peter Kaufman) wrote:
>My input is below and the BBEdit Find is:
>FIND: ^Last Name:\t(.*)\n^First Name:\t(.*)\n^Middle Name:\t(.*)\n^Card
Preliminarily, are you sure that single tabs separate Labels
from values?
Your sample didn't come through that way in my email client...
Use BBEdit's Show Invisibles, including spaces, to be sure what
white space you're records have.
Converting your first two sample records to single tabs between
labels and values, single starting tab for the Access Codes line
and double starting tabs for the lines under Access Codes, the
following pattern matches both records:
^Last Name:\t(.*)\n^First Name:\t(.*)\n^Middle
Name:\t(.*)\n^Card Number:\t(.*)\n^Active Date:\t(.*)\tInactive
Date:\t(.*)\tInactive Time:\t(.*)\nNormal Rights\n\tAccess Codes\n(\t\t(.*)\n)+\n
Email might be adding some spurious line endings to wrap that.
There are some things that make this pattern fragile, so I
wouldn't recommend it for much use. But all fine if it's a
one-timer, or just getting the darn thing to match is only your
first step in refining it.
HTH
--
- Bruce
_bruce__van_allen__santa_cruz__ca_