String matching: Difference between revisions

Add Uiua
(PascalABC.NET)
(Add Uiua)
 
Line 4,905:
0123
first line is a suffix of the second line</pre>
 
=={{header|Uiua}}==
{{works with|Uiua|0.11.1}}
Does <code>football</code> start with <code>foot</code>?
<syntaxhighlight lang="uiua">
⊢⦷"foot" "football" # 1
</syntaxhighlight>
Does <code>football</code> contain <code>otba</code>?
<syntaxhighlight lang="uiua">
/↥⌕"otba" "football" # 1
</syntaxhighlight>
Does <code>football</code> end with <code>ball</code>?
<syntaxhighlight lang="uiua">
⊢⇌⦷"ball" "football" # 1
</syntaxhighlight>
Where is <code>iss</code> in <code>Mississippi</code>?
<syntaxhighlight lang="uiua">
⊚⌕"iss" "Mississippi" # [1 4]
</syntaxhighlight>
 
=={{header|Vala}}==
1,827

edits