DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
remove punctuation marks from string js
const regex = /[!"#$%&'()*+,-./:;<=>?@[]^_`{|}~]/g; const result = WANTED_STRING.replace(regex, '');
PREVIOUS
NEXT
Tagged:
#remove
#punctuation
#marks
#string
#js
ADD COMMENT
Topic
COMMENT
Name
1+5 =
Submit