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

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 <example_identifier>  with no reference.”

If DI pattern matches with - “<example_identifier>”
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. “example_identifier

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

Additional Information

More information about validator can be found in documentation here - Using optional validators (broadcom.com)