title: PHP Regex - Finding two consecutive words with unknown number of spaces (" ") between them
body: <p>I am trying to create a PHP REGEX that will match if two words appear next to each other with ANY number of spaces between them.  </p>
  
  <p>For example, match "Daniel&nbsp;&nbsp;&nbsp;Baylis" (3 spaces between 'Daniel' and 'Baylis').  I tried with this but it doesn't seem to work:</p>
  
  <pre><code>"/DANIEL[ ]{1,5}BAYLIS/" (this was to check up to 5 spaces which the most I expect in the data)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>"/DANIEL[ ]{*}BAYLIS/"
  </code></pre>
  
  <p>I need to extract names from within larger bodies of text and names can appear anywhere within that text.  User input error is what creates the multiple spaces.</p>
  
  <p>Thanks all! - Dan</p>