title: PHP Regex match sentences
body: <p>I am trying to compare two sentences using PHP and regex like this:</p>
  
  <pre><code>$data = "I am a happy man with 2 kids";
  if (preg_match('/^(?=.*I)(?=.*am)(?=.*happy)(?=.*with)(?=.*2)(?=.*kids)/i', $data)) {echo 'match';} else {echo 'not match';}
  </code></pre>
  
  <p>and that seems to work fine, but if I change the sentence to:</p>
  
  <pre><code>$data = "I am a happy man with 20 kids";
  if (preg_match('/^(?=.*I)(?=.*am)(?=.*happy)(?=.*with)(?=.*2)(?=.*kids)/i', $data)) {echo 'match';} else {echo 'not match';}
  </code></pre>
  
  <p>It's still saying that matches. The problem is that is not matching the exact number and just checking if theres a number 2 on the other sentence.</p>