String matching: Difference between revisions
Content added Content deleted
(Applesoft BASIC) |
|||
Line 638: | Line 638: | ||
#symbol program = |
#symbol program = |
||
[ |
[ |
||
literalControl starting:"hello" &with:"hel" ? |
|||
[ |
[ |
||
consoleEx writeLine:"hello starts with hel". |
consoleEx writeLine:"hello starts with hel". |
||
]. |
]. |
||
literalControl ending:"hello" &with:"llo" ? |
|||
[ |
[ |
||
consoleEx writeLine:"hello ends with llo". |
consoleEx writeLine:"hello ends with llo". |
||
]. |
]. |
||
literalControl contain:"el" &in:"hello" ? |
|||
[ |
[ |
||
consoleEx writeLine:"hello contains el". |
consoleEx writeLine:"hello contains el". |