Re: Handling dollar signs in search and replace

2021-05-28 Thread Patrick Woolsey
Good afternoon folks and just a gentle reminder that this thread is drifting rather far afield for relevance... ;-) Regards Patrick Woolsey == Bare Bones Software, Inc. On 5/28/21 at 12:34 PM, duncan...@gmail.com (Duncan Thorne) wrote: Hi Chris,

Re: Handling dollar signs in search and replace

2021-05-28 Thread Duncan Thorne
Hi Chris, Many thanks for the tip on Jedit Ω (used the Tex-Edit Plus special chars popup for "Ω"). I've downloaded the Jedit web edition and will be poking around in it. So, from Texas to Japan. Of course you risk questions about using Applescript with it! Not sure the BBedit forum would be

Re: Handling dollar signs in search and replace

2021-05-27 Thread Christopher Stone
On 05/26/2021, at 21:42, Duncan Thorne mailto:duncan...@gmail.com>> wrote: > I just noticed that you too use T-E+. I sing the praises of it every day and > it's a big reason I'm still at Mojave, the last 32-bit compatible version of > the OS. I wonder what happened to Tom Bender, the guy behind

Re: Handling dollar signs in search and replace

2021-05-27 Thread Duncan Thorne
Hi Chris, I just noticed that you too use T-E+. I sing the praises of it every day and it's a big reason I'm still at Mojave, the last 32-bit compatible version of the OS. I wonder what happened to Tom Bender, the guy behind it. I've found no answer on Google. Cheers, Duncan On Wednesday, May

Re: Handling dollar signs in search and replace

2021-05-26 Thread Christopher Stone
On 05/25/2021, at 23:19, Duncan Thorne mailto:duncan...@gmail.com>> wrote: > Here's a sample line from my script where things go wrong: > tell front text window's text > > replace "2021 > > \$" using " \$" options {search mode:grep, case sensitive:false, starting > at top:true} -- the idea

Re: Handling dollar signs in search and replace

2021-05-26 Thread Duncan Thorne
It works! Also, much tidier. Thanks Rich for that, and to everyone else for all the hand holding. I can't thank you enough. On Wednesday, May 26, 2021 at 7:12:21 AM UTC-6 sie...@barebones.com wrote: > On 26 May 2021, at 0:19, Duncan Thorne wrote: > > > You are all a helpful bunch but I'm still

Re: Handling dollar signs in search and replace

2021-05-26 Thread Rich Siegel
On 26 May 2021, at 0:19, Duncan Thorne wrote: You are all a helpful bunch but I'm still sinking! I looked at the manual and it addles my brain. Grep, zero-width positions, etc. Yikes. I think you'll find it simpler if you eliminate Grep from the process and do a literal search. Try writing

Re: Handling dollar signs in search and replace

2021-05-26 Thread Duncan Thorne
You are all a helpful bunch but I'm still sinking! I looked at the manual and it addles my brain. Grep, zero-width positions, etc. Yikes. My limited Applescript background has been mainly with the ancient 32-bit Tex-Edit Plus, which was somewhere between a text editor and a word processor

Re: Handling dollar signs in search and replace

2021-05-26 Thread @lbutlr
On 25 May 2021, at 18:17, Duncan Thorne wrote: > I'm stumped when it comes to reformatting a text line that begins with a $ > symbol. I want to replace the preceding line's line break, followed by the > new line's $, with a tab-$. > For instance: > ... 2021 > $0.23 > > changed to: > ... 2021

Re: Handling dollar signs in search and replace

2021-05-25 Thread Christopher Stone
On 05/25/2021, at 19:17, Duncan Thorne mailto:duncan...@gmail.com>> wrote: > I'm stumped when it comes to reformatting a text line that begins with a $ > symbol. I want to replace the preceding line's line break, followed by the > new line's $, with a tab-$. > For instance: > ... 2021 > $0.23 >

Re: Handling dollar signs in search and replace

2021-05-25 Thread Kerri Hicks
When using grep, $ anchors the match at the end of the line. Add a slash before the $ to escape it, so it's used as a literal character. --Kerri On Tue, May 25, 2021, 9:15 PM Duncan Thorne wrote: > I'm stumped when it comes to reformatting a text line that begins with a $ > symbol. I want to

Handling dollar signs in search and replace

2021-05-25 Thread Duncan Thorne
I'm stumped when it comes to reformatting a text line that begins with a $ symbol. I want to replace the preceding line's line break, followed by the new line's $, with a tab-$. For instance: ... 2021 $0.23 changed to: ... 2021 (tab) $0.23 BBEdit search-and-replace treats $ as a special search