Forum Discussion
Philip_Baird
12 years agoCommunity Hero
Hi David, I tried the following in Test Complete 10, language JScript:
function testStrMatches() {
var pattern = "dog";
var text = "The quick brown fox jumps over the lazy dogs";
var result = aqString.StrMatches(pattern, text);
Log.Message( result );
}
This logs True, and inspecting in the debugger shows the value of result = True and the Type = Boolean
I guess this doesn't really help, but does show that what you are attempting should work.
Regards,
Phil Baird