How do we find the index of the nth occurrence of a letter in a string. For example in the following string:
how do I find the index of the 4th dot. I know how to do the leftmost and rightmost by lfind and rfind, but not the middle ones.
Thanks for your help.