Re: Formatting Multiple Choice Questions Using Regex

2023-09-13 Thread David G Wagner
15:38 -0700, 'anotherhoward' via BBEdit Talk , wrote: > David, > That sounds like a viable solution. I'm open to that idea. Do I have to do > anything to my submission for it to be done the way you suggested? > Howard > > > On Wednesday, September 13, 2023 at 6

Re: Formatting Multiple Choice Questions Using Regex

2023-09-13 Thread David G Wagner
That is still a lot of work on your end. Why not use a square bracket or } as the correct answer then it should be handled in hopefully one pass and no one is doing extra work. Just thought… Wags ;) WagsWorld Hebrews 4:15 Ph(primary) : 408-914-1341 Ph(secondary): 408-761-7391 On Sep 13, 2023 a

Re: Any Regex Gurus -

2022-07-11 Thread David G Wagner
good[^"]*"[^"]* Will give you: good for me",yo" On Jul 11, 2022, 10:13 -0700, Prashant Maheshwari , wrote: > I can extract all text between good and quotes by search good.*" > > > How to modify to extract between two quotes starting from good > good for me",yo > > > > > > hello how are we doing m

Re: Tag conversion to a new format

2022-02-23 Thread David G Wagner
When you state header, this implies that there is more data than what you present. Could you provide a small selection of what the data file actually looks like? ;) Wags ;) WagsWorld Hebrews 4:15 Ph(primary) : 408-914-1341 Ph(secondary): 408-761-7391 On Feb 22, 2022, 17:04 -0800, lux , wrote: >

Re: Using GREP, need help to extract names and numbers from column

2022-02-10 Thread David G Wagner
I took the data and tried this: ([a-z]\.)([a-z]+)\s+\(([^\)]+)\)(\s*(and){0,1}\s*) Replace as \1\2\t\3\n You stated an extra column needed, so used \t (tab inserted). This did your test data in one pass. Wags ;) WagsWorld Hebrews 4:15 Ph(primary) : 408-914-1341 Ph(secondary): 408-761-7391 On

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 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 the

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

2022-01-06 Thread David G Wagner
Chris S, I tried your script, but nothing appears to happen. No changes. I made mods to your code. I was not as clear as I should have been on explanation desired results. What I am working on is 50 chapters which are of the format: #start# 1 xx 2 xxx …. n xxx #endofGen# What I am tr

Re: Need to increment a counter for chapter count

2022-01-06 Thread David G Wagner
#EndOfGen# > > Output: > #Start# > 1 In the beginning, God created the heavens and > Xxccx > #EndOfGen# > #Start# > 2 Thus the heavens and the earth were finished, > Xxxx > #EndOfGen# > #Start# > 3 Now the serpent was more crafty than any other beast of the fi

Re: Need to increment a counter for chapter count

2022-01-05 Thread David G Wagner
Thank, Chris but did not do as desired. Here is the output received(cutdown from my extended data test): #Start##Start#start#Start# 3 In the beginning, God created the heavens and the #Start#EndOfGen#Start# #Start#Start#Start# 7 Thus the heavens and the earth were finished, and #Start#EndOfGen#St

Need to increment a counter for chapter count

2022-01-05 Thread David G Wagner
I have the following data: #Start# 1 In the beginning, God created the heavens and Xxccx #EndOfGen# #Start# 1 Thus the heavens and the earth were finished, Xxxx #EndOfGen# #Start# 1 Now the serpent was more crafty than any other beast of the field that the LORD God had made. Xxx #EndO

Re: Need easy way to make first letter of each line upper case

2021-10-29 Thread David G Wagner
You replace the ^ + with ^\s+ which would handle both spaces and tabs if there… ;) Wags ;) WagsWorld Hebrews 4:15 Ph(primary) : 408-914-1341 Ph(secondary): 408-761-7391 On Oct 29, 2021, 04:03 -0700, Satomi Yoneki , wrote: > > > I meant the number of the line, as in the numbers in the left hand co

Re: Is this the best workflow to merge?

2021-08-25 Thread David G Wagner
Oh, there is, but we would need someone with Applescript knowledge which could take a folder of files, have a new folder made to hold all the concatenated files until you are sure they are correct. They should be able to find all files of similar naming convention, concat the files, provide a si

Re: How to grep a list of hyperlink to capitalise the words

2021-04-18 Thread David G Wagner
Not pretty, but if the input you are looking at is consistent then I got this to work. Unsure on the 21 thru 29 if that was the format you wanted, since you did not show that portion... ;) Find:   ^(\d{1,2}\.\s{1,})TEXT\s{1,}([a-zA-Z])([a-zA-Z-]+)(\s{0,})(\<\/a\>) Replace: \1Text \u\2\L\3\E\4\5

Re: grep pattern to find special combinations of fields in a large csv file

2020-07-29 Thread David G Wagner
You will have in history and you can use the script editor to record your actions, save that output and execute. Personally a Perl individual, but you should be able to follow the shooting... A thought... Wags ;) WagsWorld Hebrews 4:15 Ph(primary) : 408-914-1341 Ph(secondary): 408-761-7391 On Ju

How to actually set an expert preference?

2020-06-15 Thread David G Wagner
I looked at the doc and did some searches on the net and either I used the wrong wording or did not view the right outputs, but I never did see how one is to set a particular expert preference or see what expert preferences are set. I tried a shell worksheet and executed ’env’ and got the output

Re: Including "Sr." or "Jr." in name where applicable

2020-02-29 Thread David G Wagner
anks. How does this part of the expression work?—  (\s(jr|sr).){0,1}) > > > On Saturday, February 29, 2020 at 2:42:43 PM UTC-5, David G Wagner wrote: > > You could add: > > (\s(jr|sr).){0,1} within the last set of parens so would look like: > > > > ^(

Re: Including "Sr." or "Jr." in name where applicable

2020-02-29 Thread David G Wagner
You could add: (\s(jr|sr).){0,1} within the last set of parens so would look like: ^([a-z,A-Z,\.]+) ([a-z,A-Z]+(\s(jr|sr).){0,1}) This would handle those who do not put a period after the Jr or Sr also. Wags ;) WagsWorld Hebrews 4:15 Ph(primary) : 408-914-1341 Ph(secondary): 408-761-7391 On Feb

Re: Newbie Seeking Advice

2020-02-29 Thread David G Wagner
What do the currency numbers look like? I mean is there a dollar sign? Is the minus sign at front or back? What you want to do is simple, but not familiar SGML. So if you can dummy some trans, would make it clearer to me... Wags ;) WagsWorld Hebrews 4:15 Ph(primary) : 408-914-1341 Ph(secondary)

Re: Markup

2019-10-21 Thread David G Wagner
The main thing is can you identify the title in some way. If one can do that, then The rest is pretty eady to fall in place, but can you identify the title? Wags ;) WagsWorld Hebrews 4:15 Ph(primary) : 408-914-1341 Ph(secondary): 408-761-7391 On Oct 21, 2019, 11:51 -0700, Sam Hathaway , wrote: >

Re: GREP help: dig into the report of the cash register

2018-12-04 Thread David G Wagner
You state what you need is in red, but you do not show any date in red. Please clarify... thank you... Wags ;) WagsWorld Hebrews 4:15 Ph(primary) : 408-914-1341 Ph(secondary): 408-761-7391 On Dec 4, 2018, 05:14 -0800, m.osti , wrote: > Hello, every day when I have to close up my shop I get this