Demonstrates DWScript's built-in string pattern matching capabilities. This example showcases the 'StrMatches' function, which allows for simple yet powerful wildcard-based matching (using '*' and '?') without the complexity of full regular expressions.
var s := 'DWScript';
PrintLn('Matches "*Script": ' + s.Matches('*Script').ToString);
PrintLn('StrMatches("hello", "h*o"): ' + StrMatches('hello', 'h*o').ToString);
Matches "*Script": True
StrMatches("hello", "h*o"): True