LearnPy Hub
← Regular Expressions problems
Medium

Find Dates

Find all dates written as YYYY-MM-DD and print them as DD/MM/YYYY, one per line (or none). Use groups.

Input

One line.

Output

Lines.

Sample 1

Input
Exams on 2026-12-15 and 2027-01-03
Output
15/12/2026
03/01/2027

Sample 2

Input
no dates
Output
none
solution.py
Output appears here
Find Dates · Python practice problem · LearnPy Hub