I have a function that searches documents for a keyword using the pos() function that works.
I want to extend this feature to allow for '*' and '?' as wild cards.
I've been able to code the asterisk using recursion and it seems to work (although if you are actually searching for an *, then it would not work correctly), but I cannot seem to figure out a way to code the question mark.
I've found many delphi functions that claim it can do wild card searches, but none seem to actually work for me.
Any ideas would be appreciated on how to accomplish this.
Thanks in advance...
I want to extend this feature to allow for '*' and '?' as wild cards.
I've been able to code the asterisk using recursion and it seems to work (although if you are actually searching for an *, then it would not work correctly), but I cannot seem to figure out a way to code the question mark.
I've found many delphi functions that claim it can do wild card searches, but none seem to actually work for me.
Any ideas would be appreciated on how to accomplish this.
Thanks in advance...