import re
string = "Python is fun"
# check if 'Python' is at the beginning
match = re.search('APython', string)
if match:
print("pattern found inside the string")
else:
print("pattern not found")
# Output: pattern found inside the string
exp = "(d{1,3}.){3}d{1,3}"
ip = "blah blah 192.168.0.185 blah blah"
match = re.search(exp, ip)
print match.group()
if re.search(rf"(?=w){TEXTO}(?!w)", subject, re.IGNORECASE):
...do something