String matching: Difference between revisions

(Created page with '{{task}} Given two strings, demonstrate the following 3 types of matchings: 1. Determining if the first string starts with second string 2. Determining if the first string cont…')
 
Line 17:
"abcd".endswith("zn")#returns false
location="abab".find("ab")#returns 0
location="abab".find("ab",2location+1)#returns 2
</lang>
10

edits