Skip to content

Commit 2c27e84

Browse files
Update matchAll to include first only matching group (#9683)
* Update matchAll to include first only matching group * Update strings.md --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 83acdf1 commit 2c27e84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

strings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2031,7 +2031,7 @@ The `matchAll` method will return a collection containing the portions of a stri
20312031

20322032
// collect(['bar', 'bar'])
20332033

2034-
If you specify a matching group within the expression, Laravel will return a collection of that group's matches:
2034+
If you specify a matching group within the expression, Laravel will return a collection of the first matching group's matches:
20352035

20362036
use Illuminate\Support\Str;
20372037

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy