Anonymous user
String matching: Difference between revisions
→{{header|Ruby}}
No edit summary |
|||
Line 257:
'abab'.index('bb') #returns -1
'abab'.index('ab') #returns 0
'abab'.index('ab', 1) #returns 2</lang>
=={{header|Retro}}==
|