setIgnoreCase

setIgnoreCase(enable: Boolean): JadeRegexPattern;

This fluent‑style method returns its own modified receiver, to allow call chaining. (By default, the pattern matches both uppercase and lowercase characters.)

Call the setIgnoreCase method of the JadeRegexPattern class with the enable parameter set to true to set the option to ignore case‑sensitivity in the pattern.

The following is an example of a setIgnoreCase method.

setIgnoreCaseExample();
constants
    PatternStr = "[a-z]+\s[a-z]+";
    Text = "Some Text";
vars
    pattern : JadeRegexPattern;
    match : JadeRegexMatch;
begin
    create pattern;
    pattern.compile(PatternStr);
    write pattern.isMatch(Text); // false
    pattern.setIgnoreCase(true).compile(PatternStr);
    write pattern.isMatch(Text); // true
epilog
    delete pattern;
    delete match;
end;

You must set your required case-sensitivity setting before you call the compile method. (The case‑sensitivity setting defaults to false.)

2020.0.01 and higher