aboutsummaryrefslogtreecommitdiff
path: root/challenge-002/paulo-custodio/python/ch-1.py
blob: bf1a796825f644d56bd36326af259f2268403273 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env python

# Challenge 002
#
# Challenge #1
# Write a script or one-liner to remove leading zeros from positive numbers.

import sys
import re

print(re.sub(r"^0+(\d)", r"\1", sys.argv[1]))