Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

py regex if .jpg

>>> import re
>>> text = "test1.jpg, test2.jpg testest.gif tata.jpg, trol.jpg, dam.blog"
>>> re.findall(r"S+.jpg", text)
['test1.jpg', 'test2.jpg', 'tata.jpg', 'trol.jpg']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #py #regex
ADD COMMENT
Topic
Name
1+7 =