String matching: Difference between revisions
Content added Content deleted
m (→{{header|Sidef}}: fixed the while loop) |
(Added EchoLisp) |
||
Line 821: | Line 821: | ||
println(string1.endsWith(string2)) |
println(string1.endsWith(string2)) |
||
}</lang> |
}</lang> |
||
=={{header|EchoLisp}}== |
|||
<lang lisp> |
|||
(string-suffix? "nette" "Antoinette") → #t |
|||
(string-prefix? "Simon" "Simon & Garfunkel") → #t |
|||
(string-match "Antoinette" "net") → #t ;; contains |
|||
(string-index "net" "Antoinette") → 5 ;; substring location |
|||
</lang> |
|||
=={{header|Elena}}== |
=={{header|Elena}}== |