Jump to content

String matching: Difference between revisions

m
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}}
1,532

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.