showing results for - "replace many chracters js"
Aleyna
31 Feb 2016
1// You can use regex to do it in only one replace
2// Using the or: |
3var str = '#this #is__ __#a test###__';
4str.replace(/#|_/g,''); // result: "this is a test"
5// Or using the character class 
6str.replace(/[#_]/g,''); // result: "this is a test"
Valeria
08 Jan 2020
1var str = '[T] and [Z] but not [T] and [Z]';
2var result = str.replace('T',' ').replace('Z','');
3console.log(result);
queries leading to this page
javascript remove multiple characters from mutiple stringsregex replace different charactersstr replace multiple characters javascriptreplace multiplejavascript str replace multiplereplace multiple data from stringrelace a set of charecters to another jsreplace set of characters in string javascriptstring replace more than onejavascript multiple replacejavascript replace many charactersmultiple replace jsreplace multiple characters javascriptjavascript regex more than one characterstr replace multiple javascriptremove multi character from string in javascriptreplace multiple matchestext replace multiple valuesmultiple replace methodjs replace all multiplejs string remove multiplevarius replace jshow to replace two characters in a string javascriptjquery replace multiple characters in stringstring multi replacejquery replace more than one character in text fild to 1replace multiple stringsjs replace all multiple replacejs replace 2 charactersjavascript regex remove multiple charactersmultiple replace javascriptjavascript replace many timesreplace array of characters regexjavascript replace two charactersreplace multiple javascriptnodejs replace mulitple charactersjs replace multi charsreplace multiplecharactershow to replace few characters with javascripthow to replace more than one character in javascriptreplace all characters by itself plus any javascriptreplace charcter if not in list javascriptregex diffrent of character replacementreplace two values javascripthow to remove multiple elements in string replacereplace multipl values from a string using jqueyrreplace all multiplereplace a two subsequent character character in jsjavascript replace set of charactersreplace a list of type characters javascriptuse replaceall for multiple characters javascriptreplace multiple characters from string javascriptjs replace multiple charactersstr replace multiplemultiple replacemany string replace jshow to remove mult from a string in javascriptreplace many characters at one jsremove many character from string jsjavascipt multiple replacejs make replace 28 29 replace multiple charactersuse multiple replace 28 29 function in pythonjquery replace 2 characters in stringfind and replace multiple instances of text in html site 3astackoverflow comjs replace multiple wordshow to replace multiple items in stringjavascript replace multiple matchesreplace multiple characters in string jsreplace multiple characters jsjavascript replace two characters at oncereplace multiple charactersin string javascriptreplace multiple different characters javascriptreplace multiple characters in string javascriptjs replace multiple characters in one replace callreplace js multiplereplace several items on stringmultiple replacemultiple replace stringjs replace 2 stringsreplace two symbols with regexpreplace 2 characters javascriptremove multiple characters from string javascripthow to replace multiple conditionreplaceall multiple timesmore than one character in array javascriptjs multiple replace 28 29javascript replace list of charactersstring replace with multiple valuesreplace varios characters in javascriptreplace group of characters with one javascriptjavascript replace function multiplejavascript replace string multiple timesjavascript replace multiple characters with empty stringjavascript remove multiple string symbolssearch and replace multiplereplace multiple in one statementjs string replace multiplereplace multiple characters in a string javascript js replace multiple character in string split 28search 29 join 28replacement 29 for multiple characters javascriptreplace many chracters jshow to replace multiple things in javascriptgive multiple strings to match in replaceall javascriptmake relace search string more than once javascriptreplace multiple characters in javascriptjavascript regex replace set of charactersstring replace multiplereplace several remove multiple characters from string in javascriptusing replace to multiple one call javascriptnodejs replace many charactersregex how to replace more than one characterjavascript replace multiple charactersjavascript replace multiple characters in stringmultiple replace in jsreplace multiple string orhow to replace multiple characters in a string with a single charc in javascriptreplace 2 characters with 2 other characters in javascriptreplace javascript more than onehow to replace two different characters in javascriptreplace several characters regexhow to replace two character from string in javascriptremove multiple characters from string jshow to replace multiple characters in a string with a single char in javascriptjs replace several characters with anotherhow to replace multiple characters in a string at once javascriptreplace multiple character in jsregex replace orjavascript add multiple character to new varreplace multiple char from string jsjavascript replace double characterangular multiple replacereplace 28 29 multipleangular string replace multiplereplace multiple characters javavscriptjavascript string replace multiple charactersjavascript string replace different charactersjavascript replace all multiple characters in a stringjs replace multiplehow to two value replace by 28 29 in javascriptjs replace more than one timereplacing multiple characters in a string javascriptsearch for various charachters and replace empoty javascript replace multiplereplace multiple strings at once js regexjs replace two charactersangular string multiple replacemutile replace in javascriptreplace different characters in string javascriptreplace more than one character in javascriptreplace mutil in javascriptmultiple text replacereplace multiple strings at oncereplacing multiple symbols in a string in javascripttostring with multiple replacejavascript replace two conditionshow to replace same multiple characters in javascriptrun replace for multiple valuesremove multi character from string in javascriptmultiple replace in javascriptjavascript replace multiplereplace elements which are multiplesreplace 2 characters regex jsreplace two characters in string same time jsjavascript replace multiple characters with spaceregex replace various charactersjavascript replace more than one thinghow to multiple replace in javascriptjs multi replacejs replace multiplecheck multiple letters in string in javascriptstring replace multiple charactersstring replace multiplereplace multiple characters in muliple times regular express in javascriptregex replace multiple characters with onehow to replace multiple characters in a string in jsmultiple replace jspython replace multiplejs replace multiple charmultiple replace javascriptreplace two characters in string javascriptjavascript one replace with multiple 0replace many character in javascriptperform multiple replace method in javascriptjavascript replace two conditions orjavascript replace 2 charactersreplace multiple characters in jqueryreplace multiple characters in single replace 28 29 callhow to remove multiple characters from a string in javascriptjquery val remove multiple charsreplace many string and character javascriptusing replace to multipleremove multi character in javascriptreplace many characters javascripthow to use multiple replace function in javascriptreplace one or more characters javascriptangular replace multiple escape 2fstr replace multiplemultiple replace character in string angular 6javascript remove multiple characters from stringmultiple str replacehow to replace multiple characters in a string in typescriptjavascript replace more than oneis there a way to replace multiple letters in javascriptdouble replacejavascript replace multiplejavascript remove several characters from stringstring replace multiple characters javascriptreplace multipel character in string jsmultiple conditions in replace in javascriptjs replace tow charachterjavascript replace multiple charjavascript string replace multiplejavascript replace multiple chracters with somethingreplace two characters javascripthow to replace multiple character inside a string in javascriptjs how to select multiple chars of stringjs replace multiple charsjavascript multiple replace in one lineangular replace multiplejavascript multiples string repalcehow to replace multiple characters in a stringjavascript regex multiple charactersmutiple character in jsjquery string replace multiple charactersreplace multiple characters worldhow to replace multiple characters in a string in javascripthow to replace multiple characters in javascript regexregexp replace multiple character with multiplejquery remove muliple symbol from stringjavascript replace multiple different charactersnode js multiple replacereplace many chracters js