title: Delete strings (support regex) stored in list from a text file
body: <p>I'm trying to store a set of strings in a form of a list with the capability of supporting regular expressions and delete those strings from a file.</p>
  <p>For example:</p>
  <pre><code>list = ['enabled','vs-index \d+']
  </code></pre>
  <ul>
  <li>where 'vs-index \d' is expressed as an regex. (it can be .... vs-index 30, vs-index 40 . etc...)</li>
  </ul>
  <p>I have a text file:</p>
  <p>config.txt</p>
  <pre><code>ltm virtual testing { destination 80.80.80.80:https ip-protocol tcp mask 255.255.255.255 pool pool1 profiles { http { } tcp { } } source 0.0.0.0/0 source-address-translation { type automap } translate-address enabled translate-port enabled vs-index 38 }
  ltm virtual blah { destination 50.50.50.50:https mask 255.255.255.255 profiles { fastL4 { } } source 0.0.0.0/0 translate-address enabled translate-port enabled vs-index 35 }
  </code></pre>
  <p>Expected output would be:</p>
  <pre><code>ltm virtual testing { destination 80.80.80.80:https ip-protocol tcp mask 255.255.255.255 pool pool1 profiles { http { } tcp { } } source 0.0.0.0/0 source-address-translation { type automap } translate-address enabled translate-port }
  ltm virtual blah { destination 50.50.50.50:https mask 255.255.255.255 profiles { fastL4 { } } source 0.0.0.0/0 translate-address enabled translate-port }
  </code></pre>
  <p>The replace() function doesn't accept a list but rather a string. Any way possible to support a list and regex?</p>