title: How To Use Different Regex Patterns In Preg_match_all
body: <p>Please I have this line;</p>
  
  <pre><code>preg_match_all('/((\w+)?)/'
  </code></pre>
  
  <p>But I want to also match this pattern in the same preg_match_all</p>
  
  <pre><code>\S+[\.]?\s?\S*
  </code></pre>
  
  <p>How can I go about it in PHP</p>