Test, validate and match regular expressions
This regex matches numeric dates with a day, month, and 2- or 4-digit year, separated by a slash, hyphen, or period. Using named capture groups, it extracts the individual date components into day, month, and year variables. A backreference ensures that the second separator strictly matches the first one. It is ideal for parsing structured date strings in text processing or log analysis.