Re: Applescript to replace selected text only using grep pattern

2018-10-19 Thread Christopher Stone
On 10/14/2018, at 23:04, Christian Boyce mailto:mac...@christianboyce.com>> wrote: > I know you already have an answer but I think it's good to know how to > restrict an AppleScript "replace" in BBEdit to the selected text. I had this > problem myself once. > > This is how I'd do it (and it

Re: Grep: pattern_2 NOT preceded by pattern_1 (with pattern_1 not necessarily IMMEDIATELY to the left of pattern_2)

2018-10-19 Thread F. Alfredo Rego
That was a lame joke (to attempt to convey the power of regexes, for better or for worse) and I’m sorry if I scared you ;-) > On Oct 19, 2018, at 4:23 PM, Christopher Stone > wrote: > > On 10/19/2018, at 17:14, F. Alfredo Rego > wrote: >> P.S. >> Your previous

Re: Grep: pattern_2 NOT preceded by pattern_1 (with pattern_1 not necessarily IMMEDIATELY to the left of pattern_2)

2018-10-19 Thread Christopher Stone
On 10/19/2018, at 17:14, F. Alfredo Rego mailto:f.alfredor...@gmail.com>> wrote: > P.S. > Your previous suggestion had a slightly undesired side effect: It erased all > of my backups, locally and in the Cloud. Other than this minor inconvenience, > it was a good exercise ;-) Hey Alfredo,

Re: Grep: pattern_2 NOT preceded by pattern_1 (with pattern_1 not necessarily IMMEDIATELY to the left of pattern_2)

2018-10-19 Thread F. Alfredo Rego
Hey Chris, This works like magic! I even tried variable-length patterns and everything works perfectly, without having to deal with the frustratingly annoying limitations of negative loo-behind & Co. Thank you very much. I’m sure many in this group will benefit from your successfully crafted

Re: Way to stop minimised windows appearing on app focus?

2018-10-19 Thread Christopher Stone
On 10/17/2018, at 13:18, Bruce Van Allen mailto:b...@cruzio.com>> wrote: > I think that might be an OS thing, not unique to BBEdit. I tried two other > apps and they both did the same thing. Bruce is right. This even happens in the Finder. -- Best Regards, Chris -- This is the BBEdit Talk

Re: Grep: pattern_2 NOT preceded by pattern_1 (with pattern_1 not necessarily IMMEDIATELY to the left of pattern_2)

2018-10-19 Thread Christopher Stone
On 10/13/2018, at 12:26, F. Alfredo Rego mailto:f.alfredor...@gmail.com>> wrote: > Did you mean to use the same name for both patterns? Hey Alfredo, No. That was a goof up. I also misplaced a character. Try this: ^(?>(?:(?!ostracized_string).))*wanted_string.*$ -- Best Regards, Chris --

[ANN] BBEdit 12.5 (411039) pre-release

2018-10-19 Thread Rich Siegel
Good morning folks, We're currently working on a feature update to BBEdit 12, which includes a number of new features, as well as fixes for previously reported issues. Testing is currently underway, and we have a stable pre-release version ready for use. Note that this is a _pre-release_