This method takes a regex string, and a text string, and sees if the pattern matches the text
- Class: com.pega.launchpad.text.Text
- Method: regex
- Function handler: com.pega.launchpad.text.Text::regex
- Input parameters:
- regex (Text): A regular expression pattern
- text (Text): The text to evaluate
- caseInsensitive (Text): Optional - true or false
- Output parameters:
- Type: Boolean: true if the text matches the regular expression pattern, false otherwise
This method is a wrapper for the java String.format() method, to substitute values into a string and return the formatted string.
- Class: com.pega.launchpad.text.Text
- Method: setFields
- Function handler: com.pega.launchpad.text.Text::format
- Input parameters:
- format (Text): a valid java String format like
Please contact %s for details, or %s for other questions
- values (Text): a comma-delimited string of values to use, like
Tim,Gabe
- format (Text): a valid java String format like
- Output parameters:
- Type: Text: The formatted String. For the example inputs above, the result would be
Please contact Tim for details, or Gabe for other questions
- Type: Text: The formatted String. For the example inputs above, the result would be