String matching: Difference between revisions

Content added Content deleted
Line 516:
=={{header|Arturo}}==
 
<lang arturo>print "'abcd' starts with 'ab' = " + $([startsWith "abcd" "ab")]
 
print "'abcd' contains 'bc' = " + $([contains "abcd" "bc")]
print "'bc' found in 'abcd' at location = " + $(find[index "abcd" "bc")]
 
print "'abcd' ends with 'zn' = " + $([endsWith "abcd" "zn")]</lang>
 
{{out}}