Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python re

if pattern := re.search("[iI] am (.*)", "I am tired"):
    print(f"Hi {pattern.group(1)}, I'm dad!")
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
7+1 =