DLP Regex Builder

Author and test a regex for a Cloudflare DLP custom entry, then copy the RE2 pattern for the dashboard or a ready-made Terraform block. Ships with a loose credit-card preset that catches numbers like 1 344-4343 12345 the default PCI detector misses.

1 · Build your pattern

2 · Matches

MatchLenValid

3 · Paste into DLP (dashboard)

Zero Trust → DLP → DLP profiles → Custom profile → add entry → Regex. Engine is RE2. Set the entry's Validation to match the dropdown above.

4 · Or add to Terraform (tfvars)


    
    

Append this object to dlp_custom_entries in terraform.tfvars, then terraform apply.