docs: mention the behavior of scan using regex with capturing groups (#3240)

This commit is contained in:
itchyny authored and GitHub committed 2025-01-28 11:41:17 +09:00
1 parent 39eea145b4
commit ce54621904
4 files changed
+23 -3

No files matched your search

+6
View File
@@ -47,6 +47,12 @@ scan("c")
"c"
"c"
scan("(a+)(b+)")
"abaabbaaabbb"
["a","b"]
["aa","bb"]
["aaa","bbb"]
split(", *"; null)
"ab,cd, ef"
["ab","cd","ef"]