Sublime Forum

Display contents of regex groups

#1

I’ve betting getting a little crazy with regexs lately and would like to see some way of telling what is in each of the match groups for the currently highlighted match.

I have two thoughts on how my idea could be implemented

  1. Color code the highlighting of the match to correspond to a color applied to the match group in the search box. This would be sort of like the way excel highlights fields in formulas.

  2. Add another (probably optional) row below the search boxes that shows the contents of the available match groups, as matched in the currently highlighted match.

If there is a plugin or something that does this already, that would be awesome too, but I didn’t find anything.

0 Likes