From 4e8bbc0470f16d1be096a6e6bbd526ee7418efea Mon Sep 17 00:00:00 2001 From: Randy8080 Date: Wed, 6 Jan 2021 20:04:29 +0800 Subject: [PATCH] Fixed error in regular expression section --- php.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php.md b/php.md index 1954214..886937f 100644 --- a/php.md +++ b/php.md @@ -989,7 +989,7 @@ See also: [Nullsafe Operator](https://wiki.php.net/rfc/nullsafe_operator) ### Regular expressions ```php $str = "Visit Quickref.me"; -echo preg_match(/me/i, $str); # => 1 +echo preg_match("/qu/i", $str); # => 1 ``` See: [Regex in PHP](/regex#regex-in-php)