In python match Function is a function witch attempts to match RE pattern to string with optional flags and re.match function returns a match object on success, None on failure.
Here is the syntax for this function:
re.match(pattern, string, flags=0)
Here is the description of the parameters:
1- pattern: pattern is a regular expression to be matched.
2- string: string is which would be searched to match the pattern at the beginning of string.
1 Comment(s)