Thanks, Chris!  I'll try that too!  Love learning new tools!!PeterSent from my 
Verizon, Samsung Galaxy smartphone
-------- Original message --------From: Christopher Stone 
<[email protected]> Date: 1/6/22  6:12 AM  (GMT-06:00) To: BBEdit-Talk 
<[email protected]> Subject: Re: Executing Multiple Saved Regular 
Expressions On Jan 05, 2022, at 17:03, Peter Kaufman <[email protected]> 
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 "[email protected]" 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 [email protected].
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 "[email protected]" 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 [email protected].
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