re.search(<regex>, text) # Searches for first occurrence of pattern.
re.match(<regex>, text) # Searches only at the beginning of the string.
re.match(<regex>, text) # Searches only at the beginning of the string.
re.findall(<regex>, text)
re.split(<regex>, text, maxsplit=0) # Use brackets in regex to keep the matches.
```
**'Search' and 'match' functions return a 'Match' object. Use '.group()' method on it to get the match.**
**Parameter 'flags=re.IGNORECASE' can be used with all functions.**
**Parameter 'flags=re.DOTALL' makes dot also accept newline.**
**'Search' and 'match' functions return a 'Match' object. Use '.group()' method on it to get the whole match, or '.group(1)' to get the part in first bracket.**
**Parameter 'flags=re.IGNORECASE' can be used with all functions. Parameter 'flags=re.DOTALL' makes dot also accept newline.**
xxxxxxxxxx