System::Text::RegularExpressions::Regex::Matches 方法
内容
[
隐藏
]Regex::Matches(const String&, int) method
通过重复匹配,获取给定字符串中正则表达式的所有匹配项。
MatchCollectionPtr System::Text::RegularExpressions::Regex::Matches(const String &input, int startat=0)
| 参数 | 类型 | 描述 |
|---|---|---|
| 输入 | const String& | 输入字符串。 |
| startat | int | 开始匹配的索引。 |
ReturnValue
所有找到的匹配集合。
另见
- Typedef MatchCollectionPtr
- Class String
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.Font for C++
Regex::Matches(const String&, const String&, RegexOptions, TimeSpan, int, int) method
获取字符串与模式之间的所有匹配项。
static MatchCollectionPtr System::Text::RegularExpressions::Regex::Matches(const String &input, const String &pattern, RegexOptions options=RegexOptions::None, TimeSpan matchTimeout=InfiniteMatchTimeout, int startat=0, int length=0)
| 参数 | 类型 | 描述 |
|---|---|---|
| 输入 | const String& | 输入字符串。 |
| 模式 | const String& | 正则表达式模式。 |
| 选项 | RegexOptions | 匹配选项。 |
| matchTimeout | TimeSpan | 超时。 |
| startat | int | Match 起始位置。 |
| 长度 | int | 要检查的字符数(0 表示无限制)。 |
ReturnValue
通过重复匹配找到的所有匹配项。
另见
- Typedef MatchCollectionPtr
- Class String
- Enum RegexOptions
- Class TimeSpan
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.Font for C++