Answers for "how to remove alphanumeric characters in python using regex"

6

python regex replace all non alphanumeric characters

import re

s = re.sub('[^0-9a-zA-Z]+', '*', s)
Posted by: Guest on March-08-2021

Code answers related to "how to remove alphanumeric characters in python using regex"

Python Answers by Framework

Browse Popular Code Answers by Language