Is there a way to make Sublime Text highlight (match) only part of a regex search pattern?
For example, I want to exclusively highlight Text
when searching for Some(Text)
.
regexsublime-texttext-editors
Is there a way to make Sublime Text highlight (match) only part of a regex search pattern?
For example, I want to exclusively highlight Text
when searching for Some(Text)
.
Best Answer
Difficulty in getting a regex application to work will probably have a regex solution. In this case, lookarounds.
Example using a lookbehind:
Sample:
Regex:
Match: