title: How to search for multiple texts in a string, using java script?
body: <p>I have a string, an array of words to be searched for:</p>
  
  <pre><code>strng = "I have been working here since last six months"
  text = ["since", "till", "until"]
  result = "since"
  </code></pre>
  
  <p>I want to search for every word in array, in <code>strng</code> and when any of it is found in the strng, it must be assigned to result. how to do it?<br>
  I am using <code>.search()</code> for searching a single word, but how to search for multiple words?   please help.<br>
  I am a Newbie.</p>