Format
Accepts any value matched by `new RegExp(pattern).test(value)`. The pattern is interpreted by V8/Node — JavaScript regex syntax, not PCRE. No flags are applied (no `i`, no `u`); embed them in the pattern with `(?i)` is NOT supported — use a character class like `[Aa]` or pre-uppercase in your transform.
Examples
- pattern: '^[A-Z]{3}-\\d{4}$' // SKU-1234
- pattern: '^756\\.\\d{4}\\.\\d{4}\\.\\d{2}$' // Swiss AHV
- pattern: '^\\d{5}(-\\d{4})?$' // US ZIP