Thanks, Chris!  I'll try that too!  Love learning new tools!!PeterSent from my 
Verizon, Samsung Galaxy smartphone
-------- Original message --------From: Christopher Stone 
<listmeister...@gmail.com> Date: 1/6/22  6:12 AM  (GMT-06:00) To: BBEdit-Talk 
<bbedit@googlegroups.com> Subject: Re: Executing Multiple Saved Regular 
Expressions On Jan 05, 2022, at 17:03, Peter Kaufman <pkauf...@gmail.com> 
wrote:I have stored over 2 dozen regular expressions stored under the "g" in 
Find/Replace.I'd like to run 6 of them sequentially against a file.  Is there a 
way to do this?Hey Peter,While Text Factories work well, I tend to use 
AppleScript for this sort of task.tell application "BBEdit"    tell front text 
document's text        replace "Match-Pattern-1" using "Replace-Pattern" 
options {search mode:grep, case sensitive:false, starting at top:true}        
replace "Match-Pattern-2" using "Replace-Pattern" options {search mode:grep, 
case sensitive:false, starting at top:true}    end tellend tellI find a 
AppleScripts easier to manage and work with than Text Factories.--Best 
Regards,Chris



-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/3CC0FEB8-D28A-4531-B5C5-CFEFE9FFD5F7%40gmail.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/61d6df5c.1c69fb81.2beeb.4c38%40mx.google.com.

Reply via email to