Skip to content

Commit

Permalink
Merge d26a192 into 2efa5af
Browse files Browse the repository at this point in the history
  • Loading branch information
divine committed Jan 30, 2020
2 parents 2efa5af + d26a192 commit 374f8a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -460,7 +460,7 @@ Selects documents where values match a specified regular expression.
```php
use MongoDB\BSON\Regex;

User::where('name', 'regex', new Regex("/.*doe/i"))->get();
User::where('name', 'regex', new Regex('.*doe', 'i'))->get();
```

**NOTE:** you can also use the Laravel regexp operations. These are a bit more flexible and will automatically convert your regular expression string to a `MongoDB\BSON\Regex` object.
Expand Down

0 comments on commit 374f8a0

Please sign in to comment.