RosettaCodeData/Task/String-matching/EchoLisp/string-matching.l

6 lines
214 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
(string-suffix? "nette" "Antoinette") → #t
(string-prefix? "Simon" "Simon & Garfunkel") → #t
(string-match "Antoinette" "net") → #t ;; contains
(string-index "net" "Antoinette") → 5 ;; substring location