Question : python remove non alphanumeric
Answered by : francisco
import re
if __name__ == '__main__': input = "Welcome, User_12!!" s = re.sub(r'\W+', '', input) print(s) # WelcomeUser_12
Source : https://www.techiedelight.com/remove-non-alphanumeric-characters-string-python/ | Last Update : Wed, 16 Nov 22