if you want to match words in a Ansistring like Cppbuilder and some words at the
end like the word wonderful. Here is an example
1 2 // required #include for the TMask class3 #include "masks.hpp"
4 AnsiString sFind;
5 bool Matches;
6 7 TMask* Searcher = new TMask("*Cppbuilder*wonderful");//Create a search pattern8 sFind = "wonderful";
9 Matches = Searcher->Matches(SomeString); // Matches is false10 sFind = "I have Cppbuilder 5 and its wonderful";
11 Matches = Searcher->Matches(SomeString); // Matches is true12 sFind = "Cppbuilder is a wonderful product";
13 Matches = Searcher->Matches(SomeString); // Matches is true14 15 delete Searcher;