Sherzy
3/17/2016 - 4:31 PM

Replace in string (includes alphanumeric only)

Replace in string (includes alphanumeric only)

// replace spaces with underscore
this.FormName.replace(/ /g , "_" );

// Remove all except numbers
newVal.replace(/[^0-9.]/g, "");

// remove non-alphanumeric characters
url.value = url.value.replace(/[^\w]*/gi, "");