match multiple words with hyphen anywhere

前端 未结 0 1206
鱼传尺愫
鱼传尺愫 2021-02-04 00:09

I have multiple words which can have (or not) hyphen anywhere between them. How can I write a regex in java, which can match the word, irrespective of position of hyphen. Exmapl

相关标签:
回答
  • 消灭零回复
提交回复
热议问题