Open keith-hall opened 7 years ago
For others coming across this, I have recently suggested a workaround utilizing snippets on the forum, which obviously isn't nearly as ergonomic as having Boost extended format string replacement syntax directly in the Find and Replace panel, but could help somebody...
Summary
In Sublime Text, the Find and Replace panels currently only allow Perl Format String Syntax replacements. However, the regex library that ST uses for find and replace supports an Extended Format String Syntax. This extended format is already implemented for snippets and symbol transformations.
I think it would be great if it could be used in the find and replace panels too, to allow conditional replacements.
Steps to reproduce
lorem
Tab\b(?:(\w{3})|(\w{4}))\b
(?1three)(?2${2}4:3)
Expected behavior
Allow conditional replacements in the find and replace panel.
Actual behavior
The replacement is treated literally.
Environment