From 045ebf08c273a4ac0c411afc8ac142238e363691 Mon Sep 17 00:00:00 2001 From: Denisson Leal Date: Wed, 9 Oct 2019 15:00:59 -0300 Subject: [PATCH] fix regex demo code --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a31c1330e..54db69769 100644 --- a/README.md +++ b/README.md @@ -549,13 +549,13 @@ User::where('name', 'regex', new \MongoDB\BSON\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. ```php -User::where('name', 'regexp', '/.*doe/i'))->get(); +User::where('name', 'regexp', '/.*doe/i')->get(); ``` And the inverse: ```php -User::where('name', 'not regexp', '/.*doe/i'))->get(); +User::where('name', 'not regexp', '/.*doe/i')->get(); ``` **Type**