I'm looking into writing a program that takes a text, some wildcard patterns and then shows me the words that match those wildcards. The wildcard pattern contains only ., which represents only one character, or *, which can be anything (including a white space, a new line or ?!,./\ etc.).
Until now, I managed to dynamically read the text and I'm thinking into creating a list with all the words with strtok. Only with ., it'd be easy, but I have no idea how to work with *. And expressions, of course, can be a combination of . and *, like this: h.*. (which can be a match for harry for example).
I'd like you to share some ideas with me. I'm not asking for explicit full code, but for ideas to implement it myself.