From 8c0e8e106a81025da2b50fce539f9bccae43ceb0 Mon Sep 17 00:00:00 2001 From: Julian von Gebhardi Date: Sun, 15 Jan 2023 20:54:43 +0100 Subject: [PATCH] updated regex and fixed small formatting errors --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 668ebda..a9a1a1a 100644 --- a/README.md +++ b/README.md @@ -593,15 +593,15 @@ possible. We can use `?` to match in a lazy way, which means the match should be This becomes even more useful when using the global flag.
-"/(.*at)/" => The fat cat sat on the mat and another fat cat got jealous.. 
+"/(fa.*?at)/g" => The fat cat sat on the mat and another fat cat got jealous.. Without using this the `?` to match in a lazy way it would look like this.
-"/(.*at)/" => The fat cat sat on the mat and another fat cat got jealous.
+"/(fa.*at)/g" => The fat cat sat on the mat and another fat cat got jealous. -[Test the regular expression](https://regex101.com/r/AyAdgJ/2) +[Test the regular expression](https://regex101.com/r/hxE4kq/1) ## Contribution