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