Course of Raku / Regexes and grammars / Regexes / Substitution and replacement / Exercises
Reformat a date
Problem
The string '2025-06-15' is a date in
year-month-day order. Using captures in a substitution,
rewrite it in day/month/year order:
15/06/2025. Print the result.
Example
The program prints:
15/06/2025