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 tell
end tell
I 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.