I\'m working with a word search system, I should be able to use wildcards in the input. The pattern I use works but it only allows me to use wildcards at the end of the word