Reputation: 1770
I have string asdf-zxcv-qwer-
and I want to replace all occurence of words between -
I'm using /-[a-z]+-/
It match only zxcv
, because hyphen before qwer
is used as prefix after zxcv
. How to make it match both zxcv
and qwer
?
Upvotes: 1
Views: 774