Regex for Matching a Date (MM/DD/YYYY)

Matches dates in the common US slash-separated format.

Published October 10, 2026

Matches dates in the common US slash-separated format.

Key points

  • Forward slashes must be escaped in most regex flavors: \/
  • Like the ISO version, this only validates the shape, not that the date is real

Example

^\d{2}\/\d{2}\/\d{4}$
More General articles