I have some strings that I want to delete some unwanted characters from them. For example: Adam\'sApple ----> AdamsApple.(case insensitive) Can someone help
Adam\'sApple ----> AdamsApple
I am probably late for the answer but i think below code would also do ( to an extreme end) it will remove all the unncesary chars:
a = '; niraj kale 984wywn on 2/2/2017' a= re.sub('[^a-zA-Z0-9.?]',' ',a) a = a.replace(' ',' ').lstrip().rstrip()
which will give
'niraj kale 984wywn on 2 2 2017'