Searching for a word using wildcards
Posted on 1998-06-10
I want to find the position of a word in a TRichEdit using the characters $ (meaning a vocal), £ (meaning a consonant), # (meaning a double consonant) and * (meaning any number greater than zero of arbitrary letters). The search word may contain any number and combinations of these four wildcards. Thus, searching for ' *$s*' would find the word 'close' (but not 'estimate') and '*$# ' would find 'fill' (but not 'fil' or 'filling').
I would like a complete algorithm or preferably a working Delphi function.