I want to check whether the string in my char [] variable matches a specific pattern like "NN/NN/NNNN". How ca I do that?
Thanks,
C.Balaji
I want to check whether the string in my char [] variable matches a specific pattern like "NN/NN/NNNN". How ca I do that?
Thanks,
C.Balaji
Ok. What don't you understand about it? Do you understand the method? If not what do you understand about it? No one is going to do the code for you but if you have some done post it and I'm sure someone will help ou with what you have
I don't know whether you replied to my port or not. Anyway, I have done the code. I have to go through each and every character in the string and compare it. Its working but its ugly. I was expecting some C++ string function to do the same. Hope this time I am clear.
you need various string functions, usually one string would be a pattern, the other one the string itself, and you'd compare them