If you want to just find out if one string is contained inside another:
If you want to find out how many occurrences of one string there are in another:
num = strvalue.count(strvalue2)
If you want to find the index of the first occurrence of one string in another:
ind = strvalue1.find(strvalue2)
Reputation Points: 975
Solved Threads: 140
Posting Virtuoso
Offline 1,624 posts
since Feb 2007