Méthode System::Text::RegularExpressions::Regex::Match
Contenu
[
Cacher
]Regex::Match(const String&) method
Correspond l’expression régulière à la chaîne.
MatchPtr System::Text::RegularExpressions::Regex::Match(const String &input)
| Paramètre | Type | Description |
|---|---|---|
| input | const String& | Chaîne cible. |
ReturnValue
Match value containing match status and submatches.
Voir aussi
- Typedef MatchPtr
- Class String
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.Font for C++
Regex::Match(const String&, int, int) method
Correspond l’expression régulière à la chaîne.
MatchPtr System::Text::RegularExpressions::Regex::Match(const String &input, int startat, int length=0)
| Paramètre | Type | Description |
|---|---|---|
| input | const String& | Chaîne cible. |
| startat | int | Indice de début. |
| longueur | int | Nombre de caractères à parcourir (0 pour parcourir toute la chaîne). |
ReturnValue
Match value containing match status and submatches.
Voir aussi
- Typedef MatchPtr
- Class String
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.Font for C++
Regex::Match(const String&, const String&, RegexOptions, TimeSpan, int, int) method
Correspond la chaîne et le modèle.
static MatchPtr System::Text::RegularExpressions::Regex::Match(const String &input, const String &pattern, RegexOptions options=RegexOptions::None, TimeSpan matchTimeout=InfiniteMatchTimeout, int startat=0, int length=0)
| Paramètre | Type | Description |
|---|---|---|
| input | const String& | Chaîne d’entrée. |
| motif | const String& | Modèle Regexp. |
| options | RegexOptions | Options de correspondance. |
| matchTimeout | TimeSpan | Délai d’attente. |
| startat | int | Match position de début. |
| longueur | int | Nombre de caractères à parcourir (0 désactive la limite). |
ReturnValue
Première correspondance trouvée.
Voir aussi
- Typedef MatchPtr
- Class String
- Enum RegexOptions
- Class TimeSpan
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.Font for C++