Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
python string strip non alphanumeric
Shog9
Programming language:
Python
2021-06-06 18:14:56
0
Q:
python string strip non alphanumeric
Max
Code:
Python
2021-06-02 04:55:15
Regular expressions to the rescue: import re stripped_string = re.sub(r'\W+', '', your_string)
2
Tags
string
python
Related
strip unicode characters from strings python
python3 strip punctuation from string
remove alphabetic characters python
is alphanumeric python
python strip non numeric in string
all alphanumeric characters for python python
strip whitespace python
python strip characters
how to check if a string is composed only of alphanumeric in python
python string is whitespace
strip characters from string python regex
convert alphanumeric to numeric python
string format zero padded int python
python remove non letters from string
remove non-alphabetic pandas python
New to Communities?
Join the community