What does "Exclude beginning characters" and "Exclude prefix" fields means in Custom DI?

book

Article ID: 159404

calendar_today

Updated On:

Products

Data Loss Prevention Enforce

Issue/Introduction

What is the differences between two validators "Exclude beginning characters" and "Exclude prefix" in Custom Data Identifier?

Resolution

“Exclude prefix/suffix” validation is applied to data before/after what matches the Data Identifier Pattern.
“Exclude beginning/ending character” validation is applied to data that matches the Data Identifier Pattern.

Example:
Data Identifier Pattern: \d{3.EN_US}-\d{2.EN_US}-\d{4.EN_US}
Message: “This is some text with number 323-71-7645  with no reference.”

If DI pattern matches with - “329-71-7645 ”
Exclude suffix validation applied to data that follows the actual match i.e. “with no reference.”
Exclude ending character validation applied to data that matches the pattern i.e. “323-71-7645”

Same is the case with exclude beginning character and exclude prefix.