我正在尝试使用Regex
查找字符串中的所有匹配项 Regex.find Regex.All (Regex.regex "a*") "aabkdjfaab"
[{match =" aa",submatches = [],index = 0,number = 1}]:List Regex.Match
我希望有两场比赛
[{match =" aa",submatches = [],index = 0,number = 1},{match ==" aa",submatches = [],index = 9,number = 1}]:列出Regex.Match
然而,如果我这样做,这是有效的
Regex.find Regex.All (Regex.regex "aa") "aabkdjfaab"
我错过了什么?