Multi-selection with regex (sublime text 2)

RegexSublimetext2

Regex Problem Overview


Is there a way I can enable multi-selection with regex? I don't want to do search and replace, I just want to highlight/select all of the matches according to regex.

Is this possible?

Regex Solutions


Solution 1 - Regex

Sure. Press Ctrl+F, then type your regex pattern and hit Alt+Enter

Solution 2 - Regex

You can activate/deactivate the regex mode in the search view clicking this icon:

enter image description here

Note that there is also a shortcut to activate it: Alt+R by default.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAllenView Question on Stackoverflow
Solution 1 - RegexthetaView Answer on Stackoverflow
Solution 2 - RegexMistalisView Answer on Stackoverflow