I want make findfirst() function Case-insensitive. I want to extract texts after Filter word in webpages text. Some webpages contains it as FILTER and some as Filter. How to make them equivalent ?
function imatch(s, patt)
cp=partition(s,length(patt),1)
for i in eachindex(cp)
all(t->t[1] ∈ t[2], zip(cp[i],zip(lowercase(patt),uppercase(patt)))) ? (return i) : continue
end
end
s="abc fli FiLteR nmb"
patt="FiLtEr"
imatch(s,patt)