Sublime Forum

Select words separated by a hyphen

#1

hi, I want to select words separated by a hyphen like

"this-is", "my-love", etc..

I don’t know how to do that !

0 Likes

#2

One solution will be this one, but is too long

\w+(?:-\w+)+

0 Likes