I have a text like: "test 1 test 2 test 3" and i want to replace to something like: "test d1 test d2 test d3", for this i think that i can use a regex: "\d" and then in the replace use "d(parameter)" so i can catch the number 1, 2 and 3. it is possible in sublime text 2 like is in notepad++ or editplus?
In Ctrl + H (Replace...) you should enable Regular expression (Alt+R) and then you should use
\d+
in Find What and
d$0
in Replace With
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With