Page History
...
replaceAll( string: String, regex: String, replacement: String)
- Similar to the Java replaceAll method.
- Use of on of
$
undand\
inreplacement
: If capturing groups from theregex
are used inreplacement
e.g.$1
, then then$1
is not a variable but an identifier ofreplaceAll
similar to the Java methodreplace($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 Value 2021-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.
...
Overview
Content Tools