String matching: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (→{{header|Icon}} and {{header|Unicon}}: Regularize non-standard header markup) |
Drkameleon (talk | contribs) No edit summary |
||
Line 771: | Line 771: | ||
=={{header|Arturo}}== |
=={{header|Arturo}}== |
||
<lang rebol>print prefix? "abcd" "ab" |
|||
print prefix? "abcd" "cd" |
|||
print suffix? "abcd" "ab" |
|||
print suffix? "abcd" "cd" |
|||
print contains? "abcd" "ab" |
|||
print contains? "abcd" "xy" |
|||
print |
print in? "ab" "abcd" |
||
print |
print in? "xy" "abcd" |
||
print |
print index "abcd" "bc" |
||
print index "abcd" "xy"</lang> |
|||
{{out}} |
{{out}} |
||
<pre> |
<pre>true |
||
false |
|||
'abcd' contains 'bc' = true |
|||
false |
|||
'bc' found in 'abcd' at location = 1 |
|||
true |
|||
'abcd' ends with 'zn' = false</pre> |
|||
true |
|||
false |
|||
true |
|||
false |
|||
1 |
|||
null</pre> |
|||
=={{header|AutoHotkey}}== |
=={{header|AutoHotkey}}== |