MatchExpr
  

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

Description
use to match a regular expression

Examples
//display a dialog if Username matchs '[allen]'
if MatchExpr(Username, '[allen]') then ShowMessage('Yes');

See Also: Wildcard and Regular Expressions