DLP Regex Validator

Test and validate regex patterns for Data Loss Prevention using ECMAScript syntax. Compatible with FortiDLP and other modern DLP solutions.

Regex Pattern Validator
Global (g)
Ignore Case (i)
Multiline (m)
Unicode (u)
Sticky (y)
Dot All (s)
ECMAScript Regex Quick Reference

Character Classes

.Any character except newline\dAny digit (0-9)\DAny non-digit\wAny word character (a-z, A-Z, 0-9, _)\WAny non-word character\sAny whitespace character\SAny non-whitespace character[abc]Any character in the set[^abc]Any character not in the set[a-z]Any character in the range

Quantifiers

*Zero or more+One or more?Zero or one{n}Exactly n times{n,}n or more times{n,m}Between n and m times*?Zero or more (non-greedy)+?One or more (non-greedy)??Zero or one (non-greedy)
DLP Pattern Examples
Category
Name
Pattern
Example
Personal Identity
Social Security Number (US)
\b(?:\d{3}-\d{2}-\d{4}|\d{3}\s\d{2}\s\d{4}|\d{9})\b
123-45-6789
Financial
Credit Card Numbers
\b(?:4\d{12}(?:\d{3})?|5[1-5]\d{14}|3[47]\d{13}|3[0-9]\d{11}|6(?:011|5\d{2})\d{12})\b
4111111111111111
Personal Identity
Email Addresses
\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b
user@example.com
Personal Identity
Phone Numbers (US)
\b(?:\+?1[-\s]?)?\(?[0-9]{3}\)?[-\s]?[0-9]{3}[-\s]?[0-9]{4}\b
(555) 123-4567
Network
IP Addresses (IPv4)
\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b
192.168.1.1
Network
MAC Addresses
\b[0-9A-Fa-f]{2}[:-][0-9A-Fa-f]{2}[:-][0-9A-Fa-f]{2}[:-][0-9A-Fa-f]{2}[:-][0-9A-Fa-f]{2}[:-][0-9A-Fa-f]{2}\b
00:1B:44:11:3A:B7
Personal Identity
Driver License (US)
\b[A-Z]{1,2}\d{6,8}\b
A1234567
Personal Identity
Passport Numbers (US)
\b[0-9]{9}\b
123456789
Financial
Bank Account Numbers
\b\d{8,17}\b
12345678
Financial
IBAN (International)
\b[A-Z]{2}\d{2}[A-Z0-9]{4}\d{7}([A-Z0-9]?){0,16}\b
GB82WEST12345698765432
Healthcare
Medical Record Numbers
\b(?:MRN|MR|RECORD)[:\s-]?\d{6,10}\b
MRN:1234567
Healthcare
Insurance Policy Numbers
\b[A-Z]{2,3}\d{6,12}\b|\b\d{9,15}\b
ABC123456789
Personal Identity
Vehicle Identification Number (VIN)
\b[A-HJ-NPR-Z0-9]{17}\b
1HGBH41JXMN109186
Financial
Tax ID Numbers (EIN)
\b\d{2}-\d{7}\b
12-3456789
Credentials
API Keys (Generic)
\b[A-Za-z0-9]{32,64}\b
abcd1234efgh5678ijkl9012mnop3456

DLP Testing Suite

Comprehensive tools for testing and understanding Data Loss Prevention solutions.

Affiliated with Fortinet's FortiDLP

Security Notice

This tool is for testing purposes only.
Do not use production data.

© 2025 DLP Testing Suite. Built for data protection excellence.

Secure Testing Environment