title: multiple search pattern from string
body: <p>I have this code below to search for a string of search string_search_* matched.</p>
  
  <p>I'm wondering if there's any easier way to do this like maybe add multiple search term in indexof? is that possible?</p>
  
  <p>My goal: just add variable string:</p>
  
  <p>string_search4, 5, 6 and so on..</p>
  
  <pre><code>string =  "this is a .bigcommerce.com site";
  
  var string_search1 = 'cdn.shopify.com/s';
  var string_search2 = '.bigcommerce.com/';
  var string_search3 = 'woocommerce/';
  
  // start checkig with SHOPIFY first
  var s = string.indexOf(string_search1 );
  var found_s = String(s);
  
    // IF FOUND - look for the full url hubspot - like the mp4 url
  if (found_s != '-1') {
    var result = 'SHOPIFY'
    return result;  
  }
  // if NOT FOUND, check with BIGCOMMERCE
  else {
    var b = html.indexOf(string_search2);
    var found_b = String(b);
    if (found_b != '-1') {
      var result = 'BIGCOMMERCE'
      return result;     
    }
    else {
      var w = html.indexOf(string_search3);
      var found_w = String(w);
      if (found_w != '-1') {
        var result = 'WOO COMMERCE'
        return result;     
      }    
      else {
        var result = 'CANNOT INDENTIFY CMS'
        return result
      }
    }        
  }
  </code></pre>