Back to Library
Validation

Invoice ID Format

Validate invoice IDs with year and six-digit sequence.

Pattern
^INV-(20\d{2})-(\d{6})$

Test Cases

INV-2026-000123 Match
INV-99-123 No Match

Try it Live

Test and customize this pattern in our interactive editor

Open in Editor