MatchString
  

Declare
function MatchString(source: string; pattern: string): boolean;

Description
use to match a wildcard pattern

Examples
//display a dialog if Username matchs '*allen*'
if MatchString(Username, '*allen*') then ShowMessage('Yes');

See Also: Wildcard and Regular Expressions