title: PHP Regex pattern across a line
body: <p>I have:</p>
  
  <pre><code>action=wuffwuff
  form
  action=meowmeow
  action=mooomooo
  </code></pre>
  
  <p>How can I extract the value of action after "form"?</p>
  
  <p>Using preg_match, I tried the pattern </p>
  
  <pre><code>/form.*?action=(.*)/m
  </code></pre>
  
  <p>Which somehow doesn't work</p>
  
  <p>Thank you</p>