Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python regex with f-string

# The new fstrings in Python interpret brackets in their own way.
# You can escape brackets you want to see in the output by doubling them:
regex = fr'(d{{1,2}})/(d{{1,2}})/(d{{4}}|d{{2}})'
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #python #regex
ADD COMMENT
Topic
Name
9+2 =