I would like to remove all special characters (except for numbers) from a string. I have been able to get this far
var name = name.replace(/[^a-zA-Z ]/, \"\"); <
This should work as well
text = 'the car? was big and* red!' newtext = re.sub( '[^a-z0-9]', ' ', text) print(newtext)
text = 'the car? was big and* red!'
newtext = re.sub( '[^a-z0-9]', ' ', text)
print(newtext)
the car was big and red