Re: Need way of counting number of occurrences of names

2021-09-11 Thread Howard
Bruce, That fixed it. Thank you very much for spotting the problem, Howard On Saturday, 11 September 2021 at 1:03:12 pm UTC-4 Bruce Van Allen wrote: > Howard wrote on 2021-09-11 9:29 AM: > > When I run Kerri's method, I am getting these results, which differ from > > hers: > > > > Peter Fros

Re: Need way of counting number of occurrences of names

2021-09-11 Thread Bruce Van Allen
Howard wrote on 2021-09-11 9:29 AM: When I run Kerri's method, I am getting these results, which differ from hers: Peter Fros t -- 25:3 4 -- yes Elle Clau s -- 30:0 5 -- Third line Elle Clau s -- 30:2 5 -- Third lin e -- Fourth line Cary Clar k -- 31:2 1 -- done Anyone know why I am getting

Re: Need way of counting number of occurrences of names

2021-09-11 Thread Howard
When I run Kerri's method, I am getting these results, which differ from hers: Peter Fros t -- 25:3 4 -- yes Elle Clau s -- 30:0 5 -- Third line Elle Clau s -- 30:2 5 -- Third lin e -- Fourth line Cary Clar k -- 31:2 1 -- done Anyone know why I am getting the extra spaces, e.g., the one before

Re: Need way of counting number of occurrences of names

2021-09-09 Thread Christopher Stone
> On Sep 09, 2021, at 23:15, Bruce Van Allen wrote: > > Kerri's method was correct! Indeed. It's a great example of how useful a very simple regular expression can be. :-) -- Best Regards, Chris -- This is the BBEdit Talk public discussion group. If you have a feature request or need

Re: Need way of counting number of occurrences of names

2021-09-09 Thread Bruce Van Allen
Tim A wrote on 2021-09-09 5:57 PM: > Just when I think I am making progress understanding regular expressions ... > This surely works, but I see it as attempting a match of just three characters - a non return followed by a return followed by another non return. Can you offer some insight why

Re: Need way of counting number of occurrences of names

2021-09-09 Thread Tim A
Just when I think I am making progress understanding regular expressions ... This surely works, but I see it as attempting a match of just three characters - a non return followed by a return followed by another non return. Can you offer some insight why it does work? On Wednesday, September

Re: Need way of counting number of occurrences of names

2021-09-08 Thread Christopher Stone
> On Sep 08, 2021, at 10:05, Howard wrote: > I have multiple instances of this sample data (below) in which each > observation has at least three lines and is separated by a blank line. In > each observation, the first line contains a name, the second a time, and then > there is one or more

Re: Need way of counting number of occurrences of names

2021-09-08 Thread Kerri Hicks
This worked for me, for the first part. [image: Screen Shot 2021-09-08 at 11.59.25 AM.png] The second part I think would have to be scripted. --Kerri On Wed, Sep 8, 2021 at 11:05 AM Howard wrote: > I have multiple instances of this sample data (below) in which each > observation has at least

Re: Need way of counting number of occurrences of names

2021-09-08 Thread Media Mouth
Hi Howard, here's a NodeJS version Put the following in a file named "converter.js" To run in Terminal: node path/to/converter.js path/to/source fs = require("fs"); //Load two npm packages path = require("path"); sourcePath = process.argv[2]; //Set filepaths formattedPath =

Need way of counting number of occurrences of names

2021-09-08 Thread Howard
I have multiple instances of this sample data (below) in which each observation has at least three lines and is separated by a blank line. In each observation, the first line contains a name, the second a time, and then there is one or more lines of text*:* *SAMPLE DATA* Peter Frost 25:34 yes