In python search function searches for first occurrence of RE pattern within string with optional flags.
The search function is used to re.search function and returns a match object on success.
use the below syntax for search function in .py file,
re.search(pattern, string, flags=0)
Below is the description of the parameters:
1- pattern: pattern is a regular expression to be matched.
2- string: string search to match the pattern anywhere in the string.
3- flags: flags specify different flags using bitwise OR (|).
0 Comment(s)