Python String Strip Non Alphanumeric

[Solved] Python String Strip Non Alphanumeric | Vb - Code Explorer | yomemimo.com
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

Answers related to python string strip non alphanumeric

Code Explorer Popular Question For Vb