Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python regex true false

#follow paimon on grepper
import re
# Compile ur word
p = re.compile(r'hi')
# True
print(bool(p.search("abcdefghijkl")))
# False
print(bool(p.search("abcdefgihjk")))
 
PREVIOUS NEXT
Tagged: #python #regex #true #false
ADD COMMENT
Topic
Name
2+5 =