This rule checks the input value for a specific pattern. If the pattern is found, all instances are replaced by a new pattern. The syntax for replaceAll is:
<replaceAll regex="regex_pattern" replacement="regex_pattern"/> |
The parameters for replaceAll are:
regex – A regular expression that, if found in the input string, is converted to the replacement expression.
replacement – The regular expression that replaces the expression specified by the regex parameter.
The following sample finds all periods in the input value and converts them to blanks.
<replaceAll regex="\." replacement=""/> |