Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python how to extract a string from another string

>>> s = 'gfgfdAAA1234ZZZuijjk'
>>> start = s.find('AAA') + 3
>>> end = s.find('ZZZ', start)
>>> s[start:end]
'1234'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #extract #string #string
ADD COMMENT
Topic
Name
7+8 =