I have a dataframe column which has paranthesis with it. I would like to have only string inside it.
df:
ID col1
1 [2023/01/06:12:00:00 AM]
2 [2023/01/06:12:00:00 AM]
3 [2023/01/06:12:00:00 AM]
Expected:
ID col1
1 2023/01/06:12:00:00 AM
2 2023/01/06:12:00:00 AM
3 2023/01/06:12:00:00 AM
I tried with str.findall(r"(?<=[)([^]]+)(?=])") and also some other regex it is not working.
Can anyone please help me?