I am trying to find the position of a substring in another string with IgnoreCase
.
example:
String str ="aabbssddaa", str2="ab";
str.indexOf(str2);
I want to find the position of str2 that is not case sensitive. means str2= any of them "ab","Ab","aB","AB"
And I want to traverse the string only once.