Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python find second occurrence in string

# find index of second occurence of substring in string
idx = string.find(substring, string.find(substring) + 1)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #find #occurrence #string
ADD COMMENT
Topic
Name
4+5 =