in reply to How can I find the first position of a substring case-insensitively?

index(lc($mystr), "a");.

If you want to look for $mysubstr instead of for "a", and you don't know that it's all lowercase, you'll need to apply lc to that as well, of course.

Originally posted as a Categorized Answer.