I have tried to find an answer to this for a couple of hours with no luck. It's probably something really simple but here it goes.
I am building a search program which searches a file (which is supplied as one of the arguments) for a word/pattern I imput as one of the other arguments.
The problem I have is that the pattern or search word can include the '_' character and that that character represents all the characters a - z as well as A - Z.
Now I just don't know how i can define that underscore character to be all those letters, so that when for example I search for a_e, that it finds words are, ate and so on.
I don't need help with anything else in coding (so far), just a simple example or hint on how I can accomplish the above.
thanx in advance!