Tim> s2.find(s1) Tim> returns the smallest non-negative int i such that Tim> s2[i : i+len(s1] == s1 Tim> provided such an i exists. That's as sensible as any answer, and more Tim> sensible than most <wink>, if you have to give a meaning when s1 is empty. Well, no -- you have to put the missing parenthesis in first. Here it is..... :-) -- Andrew Koenig, ark@research.att.com, http://www.research.att.com/info/ark
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4