Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python re search print

>>> import re
>>> reg = re.compile("[a-z]+8?")
>>> str = "ccc8"
>>> print(reg.match(str).group()) #use group() to print the matches
ccc8
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #search #print
ADD COMMENT
Topic
Name
6+1 =