regex is case sensitive by default, PatMatch is insensitive by default.
regex("The Quick Brown Fox", "quick", "\0", IGNORECASE);
"Quick"
regex("The Quick Brown Fox", "quick", "\0");
returns missing
rc = PatMatch("The Quick Brown Fox", patPos()>>where + "quick">>what);
show(rc,where,what);
rc = 1;
where = 4;
what = "Quick";
PatMatch("The Quick Brown Fox", patPos()>>where + "quick">>what, NULL, MATCHCASE);
returns 0
Regex
Craige