Skip to content

Commit d282a31

Browse files
committed
fix regex demo code
1 parent c90eda8 commit d282a31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,13 +549,13 @@ User::where('name', 'regex', new \MongoDB\BSON\Regex("/.*doe/i"))->get();
549549
**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.
550550

551551
```php
552-
User::where('name', 'regexp', '/.*doe/i'))->get();
552+
User::where('name', 'regexp', '/.*doe/i')->get();
553553
```
554554

555555
And the inverse:
556556

557557
```php
558-
User::where('name', 'not regexp', '/.*doe/i'))->get();
558+
User::where('name', 'not regexp', '/.*doe/i')->get();
559559
```
560560

561561
**Type**

0 commit comments

Comments
 (0)