Pages
Home
About Me
For Contact
April 6, 2018
How to remove all special characters using JavaScript in Lightning in Salesforce?
Sample Code:
var abc = "Infallible's Techie's & devel#opment %Inc. ";
var s = abc.replace(/[^a-zA-Z0-9\s]/g, "").replace(/\s\s/g, " ");
alert(s);
Output:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment