number wrapper

Youngsoo Lee 2016-11-18 18:09:41
python replace test

input

1
2
3
4
5
6
010-1234-5678
das
130-132-3-31
82-10-313-4-132
31-312
a-da

output

1
2
3
4
5
6
<010>-<1234>-<5678>
das
<130>-<132>-<3>-<31>
<82>-<10>-<313>-<4>-<132>
<31>-<312>
a-da

comments