Skip to content

String Value Matching

The String Value Matching rule validates that string values in a column meet specific matching patterns like exact match, partial match (starts/ends with), or contain a substring.
This rule is commonly used to:

  • Detect inconsistencies in names, codes, or descriptions
  • Enforce formatting standards in text fields

Example Usage:
Ensure customer names either start with ‘Dr.’ or ‘Mr.’ and contain the word ‘Smith’, or validate product codes follow a pattern like ‘PC-###’.


Configuration Fields

Rule-Specific Configuration

Field NameDescriptionRequiredData Type / Options
Match TypeType of string comparison to applyYesExact Match, Starts and Ends with, Contains
Start StringText that the value should start with (applicable if Match Type allows)NoString
End StringText that the value should end with (applicable if Match Type allows)NoString
Pattern StringText pattern the value should contain (applicable if Match Type allows)NoString
Case SensitiveWhether string comparisons should be case-sensitiveYestrue / false

Success Criteria Configuration

This section defines how the rule’s outcome is measured against expected thresholds.

Field NameDescriptionRequiredOptions / Format
OperatorComparison operation for the result countYesGreaterThan, LessThan, EqualTo, Between
Threshold ValueValue for comparison (single value for most operators)ConditionalNumber
Threshold MinMinimum value (for Between operator)ConditionalNumber
Threshold MaxMaximum value (for Between operator)ConditionalNumber
Is PercentageWhether the threshold represents a percentage or countNotrue / false (default: false)
Allow NullsShould null values be treated as validNotrue / false (default: false)
Check For MatchWhen false, validates for negation of the conditionNotrue / false (default: true)

Sample Input Data

IDCustomerCountry
1FallonGreat Britain
2Franklyn FryerFrance
3KathleenUnited States
4Judie GreenFrance
5John Doenull

Sample Configurations

Example 1: Starts and Ends With Check

Configuration FieldValue
ColumnCustomer
Match TypeStarts and Ends with
Start StringJohn
End StringDoe
Case Sensitivetrue
OperatorGreaterThan
Threshold Value1
Is Percentagefalse
Allow Nullsfalse
Check For Matchtrue

Explanation:
Validates that more than one customer name starts with John and ends with Doe, case-sensitive.


Example 2: Contains Pattern Check

Configuration FieldValue
ColumnCountry
Match TypeContains
Pattern StringFrance
Case Sensitivefalse
OperatorEqualTo
Threshold Value2
Is Percentagefalse
Allow Nullstrue
Check For Matchtrue

Explanation:
Validates that exactly two Country values contain the word France, case-insensitive.


Sample Output

Column NameRule NameSuccess CountFailure CountNull CountWithin Threshold
CustomerString Value Matching140No
CountryString Value Matching32-Yes