replace ‘;’ LIST ‘;’ REGEX (‘;’ STRING (‘;’ STRING)? )?
Description: replace ; <list> ; <regex> [ ; <replacement> [ ; <delimiter> ] ]
Date: 2019-10-12T20:27:56-04:00

- Supported by OSGi enRoute

- # replace ';' LIST ';' REGEX (';' STRING (';' STRING)? )?

      replace ; <list> ; <regex> [ ; <replacement> [ ; <delimiter> ] ]

  Replace all elements of the list that match the regular expression regex with the replacement. The replacement can use the `$[0-9]` back references defined in the regular expressions. The macro uses `item.replaceAll(regex,replacement)` method to do the replacement. The default replacement is the empty string. The default delimiter is “, “.

  ## Examples

      impls: foo,bar
      ${replace;${impls};$;.jar}       =>  foo.jar, bar.jar