title: how I could do a gsub with array elements?
body: <p>How I could replaces a string like this</p>
  
  <p>I think something like this</p>
  
  <pre><code>inputx.gsub(/variable1/,string1.split(";")[i])
  </code></pre>
  
  <p>But I dont know How I could do this code</p>
  
  <pre><code>name1;variable1 
  name;variable1 
  name3;variable1 
  </code></pre>
  
  <p>by </p>
  
  <pre><code>dog;watch;rock
  </code></pre>
  
  <p>For obtain this</p>
  
  <pre><code>name1;dog
  name;watch
  name3;rock
  </code></pre>
  
  <p>string1 => dog;watch;rock ; this string Im trying to split for replace each string variable1</p>
  
  <p>Please help me</p>