SyntaxFix
Write A Post
Hire A Developer
Questions
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