JadeRegex Methods

The methods defined in the JadeRegex class are summarized in the following table.

Method Description
contains Determines if the specified text contains an occurrence of the specified pattern. Unlike the isMatch method, this does not require the entire specified text to match; just a portion of it.
findAll Searches the entire specified text looking for all occurrences of the specified pattern. Any matches that are found are collated into a JadeRegexResult object.
findFirst Searches the specified text for the first occurrence of the specified pattern. If one is found, the details of the match are recorded as a JadeRegexMatch object.
isMatch Determines if the specified text completely matches the specified pattern. Note that for a match to occur, the pattern must match the entire specified text.
match Determines if the specified text completely matches the specified pattern. This is a more capable form of the isMatch method, as it records any match, including any capture groups specified in the pattern, as a JadeRegexMatch object.
replaceAll Replaces all occurrences of the specified pattern in the specified text with the replacement text.
replaceFirst Replaces only the first occurrence (if any) of the specified pattern in the specified text with the replacement text.
split Splits the specified text into substrings delimited by the specified pattern. The produced substrings are collated in a JadeRegexResult object.

2020.0.01 and higher