DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+3 =
Submit