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
One simple way:
>>> s = "Adam'sApple" >>> x = s.replace("'", "") >>> print x 'AdamsApple'
... or take a look at regex substitutions.