Like: Difference between revisions

From The K Language Wiki
Content added Content deleted
No edit summary
("Add category")
Line 14: Line 14:
1
1
</pre>
</pre>

[[Category:Named verbs]]

Revision as of 02:43, 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