Horje
python string exclude non alphabetical characters Code Example
python string exclude non alphabetical characters
import re

regex = re.compile('[^a-zA-Z]')
#First parameter is the replacement, second parameter is your input string
regex.sub('', 'ab3d*E')
#Out: 'abdE'
python string exclude non alphabetical characters
regex = re.compile('[,\.!?]') #etc.




Python

Related
roots of quadratic equation in python Code Example roots of quadratic equation in python Code Example
wait for input python Code Example wait for input python Code Example
make column nullable django Code Example make column nullable django Code Example
scatter plot plotly Code Example scatter plot plotly Code Example
python read url Code Example python read url Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7