Answers for "remove special characters from string python using split"

2

remove special characters from string python

import re
re.sub('[^A-Za-z0-9]+', '', mystring)
Posted by: Guest on May-14-2021
0

split string by special characters python

>>> "Banana Apple Pear Peach".split(" ")
['Banana', 'Apple', 'Pear', 'Peach']
Posted by: Guest on March-01-2021

Code answers related to "remove special characters from string python using split"

Python Answers by Framework

Browse Popular Code Answers by Language