Skip to content

Commit

Permalink
Solution to Task 2 (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
namantw authored and gauthamzz committed Jan 14, 2018
1 parent ec877dd commit ab38319
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Solutions/namantw/Task 2/regex.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#python 2.7
import re

date = raw_input()
print "" + re.sub(r'(\d{1,2})-(\d{1,2})-(\d{4})', '\\2/\\1/\\3', date)

0 comments on commit ab38319

Please sign in to comment.