title: Mongodb\BSON\Regex Php: Perform Like Match
body: <p>I see these links:</p>
  
  <p><a href="https://docs.mongodb.com/php-library/current/tutorial/crud/#regular-expressions" rel="nofollow noreferrer">https://docs.mongodb.com/php-library/current/tutorial/crud/#regular-expressions</a>
  <a href="https://docs.mongodb.com/manual/reference/operator/query/regex/#perform-a-like-match" rel="nofollow noreferrer">https://docs.mongodb.com/manual/reference/operator/query/regex/#perform-a-like-match</a></p>
  
  <p>On mongo terminal regex "/giov/i" Found:</p>
  
  <ul>
  <li>Mariogiovanni </li>
  <li>Giovanni</li>
  </ul>
  
  <p>On php with </p>
  
  <pre><code>$cursor = $collection-&gt;find([
      'description' =&gt; new MongoDB\BSON\Regex(' /giov/', 'i'),
  
  ]);
  </code></pre>
  
  <p>nothing coming back. Why? I try some solution find on this community but nothing</p>