StrMatchRegex
Syntax
long str_match_regex(char s[], char pattern[])
Function
Checks whether a string completely matches a regular expression pattern.
Parameters
s String to be checked.
pattern
Regular expression against which the string is matched. For the regular expression, the same syntax is used as in the Perl programming language.
Return Values
1 if the string matches the pattern, 0 if it doesn’t match the pattern.
char buffer[70] = "Vector Informatik";long res;res = str_match_regex(buffer, "Vector [A-Za-z]*"); // 1res = str_match_regex(buffer, "Inf[a-z]*"); // 0
str_replace | str_replace_regex | strstr_regex | String Literal