Friday, July 9, 2021

Remove special characters from string

Dear All,

 

Please find the below string to remove special characters from string using JavaScript  

 

var temp = new String('This is a te!!!!st st>ring... So??? What...');

document.write(temp + '');
temp = temp.replace(/[^a-zA-Z 0-9]+/g,'');
document.write(temp + ''); 

Subscribe

No comments:

Post a Comment

Day 11 - Customizing Option Sets Dropdown Fields with JavaScript

  In this Blog, we will see how to Customizing Option Sets Dropdown Fields with JavaScript label1 = formContext.getAttribute( "bosch_op...