Consider this simple example
http://time.com/this-time-is-different
Here I would like to match sequences such as this-time-is-different
.
That is, any sequence of a word followed by a -
, with this sequence being repeated at least three times. So in the example, the sequence word-
is repeated three times only with this-time-is-different
However, when I use [-\w]{3,}
I get too many matches, such as http
which is not even followed by a -
What is wrong here? Thanks!