title: How to check if a string contains a substring from an array and split it
body: <p>I have an array of string like: </p>
  
  <pre><code>var matchCodFisc = ["C.F.", "CF", "Cod.Fisc.", "C.F"]
  </code></pre>
  
  <p>and I want to check if in my string 
  (e.g. <code>var myString= "Cod.Fisc.FGDTFR34L16G643W"</code>) exists that substring (in this case "Cod.Fisc").
  If I found the substring I want to split my string in two parts like <code>["Cod.Fisc", "FGDTFR34L16G643W"]</code>. How can I do that using JavaScript?</p>