System::Text::RegularExpressions::Regex::Matches metod
Innehåll
[
Dölj
]Regex::Matches(const String&, int) method
Hämtar alla matchningar av regex i given sträng genom upprepad matchning.
MatchCollectionPtr System::Text::RegularExpressions::Regex::Matches(const String &input, int startat=0)
| Parameter | Type | Beskrivning |
|---|---|---|
| inmatning | const String& | Indatasträng. |
| startat | int | Index att börja matcha vid. |
ReturnValue
Samling av alla hittade matchningar.
Se även
- Typedef MatchCollectionPtr
- Class String
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.Page for C++
Regex::Matches(const String&, const String&, RegexOptions, TimeSpan, int, int) method
Hämtar alla matchningar mellan sträng och mönster.
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)
| Parameter | Type | Beskrivning |
|---|---|---|
| inmatning | const String& | Indatasträng. |
| mönster | const String& | Regexp‑mönster. |
| alternativ | RegexOptions | Matchningsalternativ. |
| matchTimeout | TimeSpan | Tidsgräns. |
| startat | int | Match börjanposition. |
| längd | int | Antal tecken att gå igenom (0 inaktiverar gränsen). |
ReturnValue
Alla matchningar som hittats genom upprepad matchning.
Se även
- Typedef MatchCollectionPtr
- Class String
- Enum RegexOptions
- Class TimeSpan
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.Page for C++