Answers for "python find the second occurrence of a string"

1

python find second occurrence in string

# find index of second occurence of substring in string
idx = string.find(substring, string.find(substring) + 1)
Posted by: Guest on June-06-2021

Code answers related to "python find the second occurrence of a string"

Python Answers by Framework

Browse Popular Code Answers by Language