import res = "123ABC,'2009-12-23T23:45:58.544-04:00'"reg = re.compile(r'(\d)T(\d)')s = reg.sub(r'\1 \2', s)print(s)
Standard input is empty
123ABC,'2009-12-23 23:45:58.544-04:00'
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!