I want to select (by regexp) only text that start by - and end by whitespace
here text:
test-hello how-are again ok
maybe good but-some not good but-what about this
I use this regexp:
-.*\s-
but result is not correct:
The correct result is:
"-x "
"-f "
"-hello "
"-are "
"-some "
"-what "
How I can do this by regexp?