So i need some help on removing the digits from this string
import re
g=\"C0N4rtist\"
re.sub(r\'\\W\',\'\',g)\'
There is no need to use regex for this. you can use isdigit() function
def removeDigitsFromStr(_str): result = ''.join(i for i in _str if not i.isdigit()) return result