Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get string between two characters python

start = 'asdf=5;'
end = '123jasd'
s = 'asdf=5;iwantthis123jasd'
print s[s.find(start)+len(start):s.rfind(end)]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #string #characters #python
ADD COMMENT
Topic
Name
3+3 =