Details
-
Sub-Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
-
2017-37, 2017-38
Description
It should be possible to replace just one part of a value.
As an example, so that a (Finnish) social security number such as 061173-174A is replaced with 061173-XXXX.
This could be done, for instance, so that the rule syntax is extended with a capture clause
{
|
"rules": [
|
{
|
"replace": {
|
"column": "ssn"
|
"match": ".*-(.*)"
|
},
|
"with": {
|
"fill": "X"
|
}
|
...
|
and then only the captured part would be replaced with the fill character.
Note that the above is only for illustrative purposes, and the actual way for specifying what is captured and how it is replaced remains to be defined during the implementation.
"capture" keyword has been changed to "match" in the JSON
Partial masking "match" option is an optional parameter in the "replace" rule.
If present it takes precedence and the filling is done in the matched string only: see comments below.