Anonymous user
String matching: Difference between revisions
→{{header|Elena}}
m (Added Sidef language) |
|||
Line 694:
<lang elena>#define system'routines.
#define extensions.
#symbol program =
[
(literalControl starting:"hello" &with:"hel") ?
[
consoleEx writeLine:"hello starts with hel".
].
(literalControl ending:"hello" &with:"llo") ?
[
consoleEx writeLine:"hello ends with llo".
].
(literalControl contain:"el" &in:"hello") ?
[
consoleEx writeLine:"hello contains el".
|