Re: [ OFFLIST ] Need to increment a counter for chapter count

2022-01-09 Thread Christopher Stone
On Jan 07, 2022, at 15:10, David G Wagner wrote: > Here is the data that I am working with. Hey David, This is why it's so important to provide real-world data samples – both input and output – when asking for help to process text. Here is a very robust method that lets you use a regular

Re: [ OFFLIST ] Need to increment a counter for chapter count

2022-01-07 Thread Bruce Van Allen
David G Wagner wrote on 2022-01-07 3:52 PM: Correct. That does work. But what if it could be either start or Start. In what you have, what would you have to change for either of those cases? That end-of-line separator has to be a string, not a regular expression, so it's fixed. But this

Re: [ OFFLIST ] Need to increment a counter for chapter count

2022-01-07 Thread David G Wagner
Correct. That does work. But what if it could be either start or Start. In what you have, what would you have to change for either of those cases? Wags ;) WagsWorld Hebrews 4:15 Ph(primary) : 408-914-1341 Ph(secondary): 408-761-7391 On Jan 7, 2022, 15:39 -0800, bbedit@googlegroups.com, wrote: >

Re: [ OFFLIST ] Need to increment a counter for chapter count

2022-01-07 Thread Bruce Van Allen
Hey David, David G Wagner wrote on 2022-01-07 1:10 PM: > Here is the data that I am working with. > > All data below this line > #start# Note that the very first "#start#" starts with a lower-case 's', while the rest start with upper-case 'S'; Fixing that, try this as a BBEdit text filter

Re: [ OFFLIST ] Need to increment a counter for chapter count

2022-01-07 Thread David G Wagner
Chris S, Here is the data that I am working with. Used red text to delineate the data being processed. To me the testing is correct as that is pretty much how I would do it with Perl, but nothing was updated… ;) All data below this line #start# 1 In the beginning, God created the heavens and

Re: [ OFFLIST ] Need to increment a counter for chapter count

2022-01-07 Thread Media Mouth
Hi JJ, Great to see someone using JXA I've been using AppleScript forever and have never found a reliable, authoritative reference for how to write for the JavaScript version other than just googling around for examples. Frankly even finding good resources for regular AppleScript has been a

Re: [ OFFLIST ] Need to increment a counter for chapter count

2022-01-07 Thread Christopher Stone
> On Jan 06, 2022, at 15:32, David G Wagner wrote: > I made mods to your code. I was not as clear as I should have been on > explanation desired results. Hey David, Using your input data sample my script exactly replicates your sample of desired output data format... Your code does not work