Like: Difference between revisions
Content added Content deleted
No edit summary |
("Better category ordering, add redirects to categories, fix pseudo-adverb categories") |
||
(3 intermediate revisions 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 14: | Line 15: | ||
1 |
1 |
||
</pre> |
</pre> |
||
[[Category:Verbs]] |
|||
[[Category:Named verbs]] |
|||
[[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