I want to find if string1 is substring of string2.
e.g. string1="abc", string2="afcabcdfg".
I want to add Wildcard cases, e.g. "*" can substitute "a" and "c", "y" can substitute "f" or "d". As a result, "*by" should be substring of "afcabcdfg".
What is general way to code it? How should I loop it?