contains
contains(text: String): Boolean;
The contains method of the JadeRegexPattern class determines whether the specified text contains an occurrence of the pattern. Unlike the isMatch method, this does not require the entire specified text to match; just a portion of it.
This method returns true if a portion of the whole string matches the pattern; otherwise it returns false.
The following is an example of a contains operation.
containsExample(); vars pattern : JadeRegexPattern; begin create pattern; pattern.setLiteral(true).compile("fox"); write pattern.contains("the quick brown fox");// true write pattern.contains("the lazy dog");// false epilog delete pattern; end;
2020.0.01 and higher