From d48964614d0a795f81ffbc4910beb411f2f0b39b Mon Sep 17 00:00:00 2001 From: Django E Date: Fri, 31 May 2024 12:11:29 +0200 Subject: [PATCH 1/2] Update matchAll to include first only matching group --- strings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strings.md b/strings.md index 102f67d31f3..25578f014f0 100644 --- a/strings.md +++ b/strings.md @@ -2031,7 +2031,7 @@ The `matchAll` method will return a collection containing the portions of a stri // collect(['bar', 'bar']) -If you specify a matching group within the expression, Laravel will return a collection of that group's matches: +If you specify a matching group within the expression, Laravel will return a collection of only the first group's matches: use Illuminate\Support\Str; From 42a14f3fa654f2a7f016a4c80f9901e64ab7b440 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 31 May 2024 11:27:03 -0500 Subject: [PATCH 2/2] Update strings.md --- strings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strings.md b/strings.md index 25578f014f0..43551e42bb8 100644 --- a/strings.md +++ b/strings.md @@ -2031,7 +2031,7 @@ The `matchAll` method will return a collection containing the portions of a stri // collect(['bar', 'bar']) -If you specify a matching group within the expression, Laravel will return a collection of only the first group's matches: +If you specify a matching group within the expression, Laravel will return a collection of the first matching group's matches: use Illuminate\Support\Str;