Remove Special Characters

Remove Special Characters

Hi folks,

I know that Number field type, does not allow the data to get submitted if there are any special characters
eg:- entering 1-1-1- in a Number field type & submitting the form, will show as error / invalid entries.

I have seen removealpha(), remove aphanumeric() in string funtions. But i was not able to locate any function that allows to remove special character

tried giving alert = input.number1.abs() , but alert just did not pop up. Wonder why?

Infact, i would like to use removeallspecialcharacters() in user input ( as in above example)
and rewrite the value as 111 ( the correct format for a number field, so that form submit works soothly)

Any help is a great help.
Regards

-Deepa Govind