I want to replace characters with regular expressions using Macros in Sublime Text.

Asked 2 years ago, Updated 2 years ago, 101 views

US>Macros to replace strings with regular expressions
From Sublime Text Tools->Macros->Users
I want to do it, but I don't know how to write a macro to replace the string.

For example, if you want to replace [^a]->b below,
What should I do?

Apple banana

bpple
banana

sublimetext

2022-09-30 20:46

1 Answers

I also had a few questions at home SO, but it seems that search/replacement cannot be recorded by standard.
RegReplace plug-in sounds good.

How do I record and run multiple find/replace with Sublime Text2?
Batch find and replace for Sublime Text2

By the way, the commands available in the macro are shown below.
http://www.sublimetext.com/docs/commands


2022-09-30 20:46

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.