re python methods code example
Example: python re
if pattern := re.search("[iI] am (.*)", "I am tired"):
print(f"Hi {pattern.group(1)}, I'm dad!")
if pattern := re.search("[iI] am (.*)", "I am tired"):
print(f"Hi {pattern.group(1)}, I'm dad!")