Sublime Forum

Regex: Select lines that contain only a certain number of words

#1

hello, I must select all the lines that contain only 4 words.

0 Likes

#2

Search:

^(?:\W*+\w++){1,4}$

0 Likes