I need to come up with a function which will take a single string and it will do the following :
- check if it is a timestamp in UTC format (e.g. if it is of the form
- If it is in the format described above, replace 'T' with space and return the string.
- If it is not of timestamp, simply return the string.
What is the best way to accomplish this in python? I thought I could use datetime module. But can this be done using re module?