title: Ruby regex that splits on newline, space, or comma
body: <p>Input:</p>
  
  <pre><code>     f = ["happy days",
           "happy\ndays",
           "happy,days",
           "happy, days"]
  
       patt = /some_regex/
  </code></pre>
  
  <p>My desired output after splitting each string in <code>f</code> on <code>patt</code> is ["happy", "days"].</p>
  
  <p>Many thanks!</p>