Closed jcubic closed 3 years ago
I was searching SRFI-13 but it seems that search string is missing there is only searching for character
I'm also not sure if string->vector
is needed, I was trying to use string-index
from SRFI, but it was way too complex.
string-contains
and string-contains-ci
do it, they return the index where the substring appears. The names of these procedures are a bit confusing.
Problem
You want to search and find the index of a string inside a bigger string.
Solution
SRFI
The same functionality is provided by SRFI-13 function
string-contains
andstring-contains-ci
Credit: @jcubic
Usage