How to handle backslash (\) in masked data?
search cancel

How to handle backslash (\) in masked data?

book

Article ID: 206698

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

In FDM 4.9.111.0, while masking the backslashes in the data are deleted. How to handle the \ (backslashe) in the masking data? Can FDM leave the backslashes as is and don't mask?

Environment

Release : 4.9

Component : CA Test Data Manager

Cause

Defect and backslash is not escaped with another backslash which caused the issue

Resolution

The problem is not related to masking at all - it's about parsing the input file as it serves as escape character which allows to use delimiter character inside the value (among other usages).

Right now there is no possible way to ignore \ and \\ in the masking data. Need to escape the special characters with \ (backslash) and use the FDM version FastDataMasker-4.9.140.0.zip or above  The below are the examples with escape character which should work with the shared patch FastDataMasker-4.9.140.0.zip:

. \" translates to "

. \| translates to |

. \\ translates to \.

Anything else translates to incorrect escape sequence which usually leads to dropped \ character.