title: How to use regex for matching multiple words
body: <p>How can I use regex to match multiple words in java? For example, the <code>addAction("word")</code> and <code>intentFilter("word")</code> at the same time for matching?</p>
  
  <p>I tried:</p>
  
  <pre><code>string REGEX ="[\\baddAction\\b|\\bintentFilter\\b]\\s*\([\"]\\s*\\bword\\b\\s*[\"]\)";
  </code></pre>
  
  <p>Could someone tell me what's wrong with this format and how can I fix it?</p>