Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • replaceAll( string: String, regex: String, replacement: String)
    • Similar to the Java replaceAll method.
    • Use of on of $ undand \ in replacement: If capturing groups from the regex are used in replacement e.g. $1, then  then  $1 is not a variable but an identifier of replaceAll similar to the Java method replace($myString, 'x', '-->$1<--')replacement.
    • Examples:

      Expression

      replaceAll( $js7OrderId, '^#([0-9]{4}-[0-9]{2}-[0-9]{2})#.*$', '$1' )

      JSON"replaceAll( $js7OrderId, '^#([0-9]{4}-[0-9]{2}-[0-9]{2})#.*$', '$1')"
      Sample Value2021-06-27

      This example extracts the daily plan date from the build-in $js7OrderId variable, e.g. from an Order ID #2021-06-27#P0000000412-jdScheduleBusinessDays the date is extracted.

...