I'm currently using JScript to keep commas out of a form box thus:
re = /^\$|,/g;
return str.replace(re, "");
}Of course, the ideal solution would be a form Regex but I have no clue about these.
Any suggestions on what to use for this.
Many thanks.
- Eraser
Code:
function filterNum(str) { re = /^\$|,/g;
return str.replace(re, "");
}
Any suggestions on what to use for this.
Many thanks.
- Eraser