Does .NET Regex support global matching?

后端 未结 1 1965
春和景丽
春和景丽 2021-01-17 09:37

I haven\'t been able to find anything online regarding this. There\'s RegexOptions, but it doesn\'t have Global as one of its options. The inline modifiers list also doesn

相关标签:
1条回答
  • 2021-01-17 09:48

    You're looking for the Regex.Matches method (plural), which returns a collection containing all of the matches in the original string.

    0 讨论(0)
提交回复
热议问题