expect_column_values_to_match_regex_list
Feb 24, 2026
·
5
min read
Values format
·
dbt-expectations
·
Column
How it Works
The expect_column_values_to_match_regex_list test from the dbt-expectations package verifies that column values match at least one pattern from a supplied list of regular expressions. By default, a value needs to satisfy only one pattern (match_on: any), but you can set match_on: all to require all patterns to match.
Steps and Conditions
Column Selection: Choose the column to evaluate.
Define Regex List: Provide the list of regex patterns using
regex_list.Match Mode: Set
match_ontoany(default) orall.Execution: Each value is tested against the regex list.
Outcome: Pass if values satisfy the match condition; fail otherwise.
Example Usage: Identity Platform
An identity platform accepts phone numbers in multiple international formats. The test validates that all stored phone numbers conform to at least one of the accepted patterns.
This ensures that all stored phone numbers follow a valid US, UK, or Australian format.





