title: Javascript-How Can i Highlight array of elements that matches with form User input textarea in HTML
body: <p>Sorry,i dont now how to ask question clearly,We have Array of elements like following:</p>
  
  <pre><code>[' 64 dollars ', ' $6k billion ', ' 7 million'] 
  </code></pre>
  
  <p>User enters a text like "I have 64 dollars and my brother has $6k billion is 7 million"</p>
  
  <p>In HTML page it needs to display the TEXTAREA value along with highlighted matched array elements. I've tried many like RegEx, String methods.</p>
  
  <p>Please suggest me the code to do this.</p>