System::Text::RegularExpressions::Regex::IsMatch méthode
Contenu
[
Cacher
]Regex::IsMatch(const String&, int) method
Correspond l’expression régulière à la chaîne.
bool System::Text::RegularExpressions::Regex::IsMatch(const String &input, int startat=0)
| Paramètre | Type | Description |
|---|---|---|
| input | const String& | Chaîne cible. |
| startat | int | Indice de début. |
ReturnValue
Vrai si la chaîne correspond au regex, faux sinon.
Voir aussi
- Class String
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.Font for C++
Regex::IsMatch(const String&, const String&, RegexOptions, TimeSpan, int) method
Vérifie si la chaîne correspond au modèle.
static bool System::Text::RegularExpressions::Regex::IsMatch(const String &input, const String &pattern, RegexOptions options=RegexOptions::None, TimeSpan matchTimeout=InfiniteMatchTimeout, int startat=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. |
ReturnValue
Vrai si une correspondance est trouvée, faux sinon.
Voir aussi
- Class String
- Enum RegexOptions
- Class TimeSpan
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.Font for C++