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 docs.python.org #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
4+3 =