Re: BBEdit Parsing Help

2020-09-27 Thread Peter Kaufman
Bruce, You have clearly caught my issues in misunderstanding and not knowing - about the ?: usage and capture variables. Thank you!!! Keri - I appreciate your input on this as well! Thank you. Peter On Saturday, September 26, 2020 at 9:34:03 PM UTC-5 Bruce Van Allen wrote: > On 9/26/20

Re: BBEdit Parsing Help

2020-09-26 Thread Kerri Hicks
Whoops, missed that last line break! ^Last Name:\t(.*)\n^First Name:\t(.*)\n^Middle Name:\t(.*)\n^Card Number:\t(.*)\n^Active Date:\t(.*)Inactive Date:\t(.*)Inactive Time:\t(.*)\nNormal Rights\n\tAccess Codes\n((?s)(.*?))\n\n --Kerri On Sat, Sep 26, 2020 at 10:37 PM Kerri Hicks wrote: > It's

Re: BBEdit Parsing Help

2020-09-26 Thread Kerri Hicks
It's hard to be sure, not knowing exactly what your whitespace is supposed to be, but try this: ^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(.*)\t\nNormal Rights\n\tAccess Codes\n((?s)(.*?)\n)*

Re: BBEdit Parsing Help

2020-09-26 Thread Bruce Van Allen
On 9/26/20 at 6:30 PM, pkauf...@gmail.com (Peter Kaufman) wrote: I’m finding that only the LAST of the Access Codes is saved though. None of those before the last one. Even though your last capture is allowed to repeat because of the (...)+, it only becomes one \# capture variable. The

Re: BBEdit Parsing Help

2020-09-26 Thread Peter Kaufman
Bruce, Thanks for looking into it. I actually converted the tabs to spaces to make it look right visually in the email. Sorry for any confusion. There are indeed tabs where the FIND string is expecting them. Perhaps should have included an attached text file. I’m finding that only the

BBEdit Parsing Help

2020-09-26 Thread Peter Kaufman
Folks, I've been struggling with this problem all day and can't seem to find a solution to it. I'm missing some key idea for which I hope one of you can inform me. Thanks very much in advance for any help! Peter My input is below and the BBEdit Find is: FIND: ^Last Name:\t(.*)\n^First