Sublime Forum

Replace set of strings

#1

(I don’t know if this is the right place to ask, sorry if it’s not.)

Is there any ST3 plugin that will allow me to search-and-replace from a set of strings? I frequently have to do substitutions like these:

Mora => Mora kommun
Falun => Falu kommun
Västerås => Västerås kommun
Stockholm => Stockholms kommun
...

…and the other way around, for 290 string pairs. I would be surprised if there wasn’t a solution to this already.

0 Likes

#2

If the set of string is usually the same, RegReplace is pretty good (available in Package Control).

0 Likes

#3

Thank you, I’ll look into that! (I had seen it, but didn’t realize I could chain the rules)

0 Likes