SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to search for the last instance of a string in a text, you can run rfind.
Example:
s="Hello" print s.rfind('l')
output: 3
*no import needed
Complete syntax:
stringEx.rfind(substr, beg=0, end=len(stringEx))