Search with Wildcard

Uvisc

New member
Joined
Oct 11, 2011
Messages
1
Programming Experience
1-3
Hello

I want a string search/compare with wildcard. I'm trying to create a "crypto crossword" application and got most of the code working but the wildcard thing was harder than I thought.

Basically I want the program to compare if "H**LO" is equal to "HELLO" (true). But "HE*" is NOT equal to "HELLO". I tried with regex but the number of wildcard is different each time and in different places so I never managed to make it work. Any help is appreciated.
 
Back
Top