Is there a string function that will tell me...

Terrence Spencer terrence at mactexas.com
Thu Apr 19 10:51:51 EDT 2001


In the Foxpro language the is a function called:

    AT(SearchingFor,StringToSearch,Count)

So if I want to find out what location the 3rd "e" is in the string
"terrence" I would say:

?at("e","terrence",3)

and that would return 7, the location of the 3rd "e".

Does python have something simular?

Thanks.

--

---------------------------------------------------------
Terrence P. Spencer
Director of Information Technologies
Municipal Advisory Council of Texas





More information about the Python-list mailing list