0

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.

Wiktor Stribiżew
  • 561,645
  • 34
  • 376
  • 476
LeviR
  • 99
  • 2
  • 7
  • what fails exaclly? is the word standalone or is it part of a sentence? what is the code you have written and fails? – Gabriel H Jul 23 '20 at 20:41
  • That can't match letters, you have a *grouping* construct that matches alternative *sequences of letters/spaces*. – Wiktor Stribiżew Jul 23 '20 at 21:05
  • You can do separate method :). Like so: public bool checkWord(String word) { if( word.equals("clave" || "word1" /*etc...*/ ) return false; return true; } – Kepes Jul 23 '20 at 22:32

0 Answers0