Like: Difference between revisions
Content added Content deleted
("Add all appropriate categories to each verb") |
("Better category ordering, add redirects to categories, fix pseudo-adverb categories") |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{primitive|x like y|in=K7}} |
{{primitive|x like y|in=K7}} |
||
''' |
'''like''' takes a pattern string <code>x</code> and string <code>y</code>, and performs a pattern match on it similar to SQL's LIKE keyword. |
||
<code>*</code> indicates a wildcard(any number of letters) in the pattern. |
<code>*</code> indicates a wildcard(any number of letters) in the pattern. |
||
Line 15: | Line 16: | ||
</pre> |
</pre> |
||
⚫ | |||
[[Category:Verbs]] |
[[Category:Verbs]] |
||
⚫ | |||
[[Category:Primitives]] |
[[Category:Primitives]] |
Latest revision as of 06:41, 9 July 2022
Like
x like y
Supported in | K7 |
like takes a pattern string x
and string y
, and performs a pattern match on it similar to SQL's LIKE keyword.
*
indicates a wildcard(any number of letters) in the pattern.
?
indicates a wildcard(single letter) in the pattern.
"abc" like "abc" 1 "abc" like "*abc" 1 "dsfasfsdabc" like "*abc" 1