Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove all symbols javascript

const removeAllSymbols = (string) => {
  const regex = /[0-9/A-Z/a-z/ /]/g;
  const letters = string.match(regex);
  const newText = letters.join("");

  return newText
};

console.log(removeAllSymbols("Hel+-*lo /Worl+-d"))
//Hello /World
Source by www.textbotonline.com #
 
PREVIOUS NEXT
Tagged: #remove #symbols #javascript
ADD COMMENT
Topic
Name
6+1 =