英文:
How would I create a regex that can match any of several words?
问题
就像我希望它在Word1、Word2或Word3上触发一样。
例如:
(Cleave|Flame|Punch|Fire Aspect|Knockback)
但那只匹配单个字母。
英文:
Like I want it to trigger on Word1, Word2, or Word3.
For example:
(Cleave|Flame|Punch|Fire Aspect|Knockback)
But that just matches individual letters.
专注分享java语言的经验与见解,让所有开发者获益!
评论