Am working with python, trying to allow only alphanumeric Characters,comma, dots, spaces
when I run the code below, it throws error invalid syntax.
strx ='test, 22222 @% te-st test test'
result = strx.replace(/[^A-Za-z0-9, .]/g, '')
print(result)
Am working with python, trying to allow only alphanumeric Characters,comma, dots, spaces
when I run the code below, it throws error invalid syntax.
strx ='test, 22222 @% te-st test test'
result = strx.replace(/[^A-Za-z0-9, .]/g, '')
print(result)