title: Ruby equivalent to grep -v
body: <p>This is what I've been doing instead:</p>
  
  <pre><code>my_array.reject { |elem| elem =~ /regex/ }.each { ... }
  </code></pre>
  
  <p>I feel like this is a little unwieldy, but I haven't found anything built in that would let me change it to <code>my_array.grepv /regex/ { ... }</code></p>
  
  <p>Is there such a function?</p>