regex_match_c
- Синтаксис
-
native regex_match_c(const string[], Regex:pattern, &ret = 0);
Переменная | Описание |
---|---|
string |
The string to check. |
pattern |
The regular expression pattern. |
ret |
Error code, if applicable, or number of results on success. See REGEX_ERROR_* defines. |
- Описание
- Matches a string against a pre-compiled regular expression pattern.
- Пометка
-
You should free the returned handle with regex_free() when you are done with this pattern.
- Пометка
-
Use the regex handle passed to this function to extract matches with regex_substr().
- Возвращает
- -2 = Matching error (error code is stored in ret) 0 = No match. >1 = Number of results.