DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python regex replace all non alphanumeric characters
import re s = re.sub('[^0-9a-zA-Z]+', '*', s)
PREVIOUS
NEXT
Tagged:
#python
#regex
#replace
#alphanumeric
#characters
ADD COMMENT
Topic
COMMENT
Name
8+5 =
Submit