Skip to main content
added 150 characters in body
Source Link
osmanraifgunes
  • 1.5k
  • 2
  • 18
  • 43

Try this :

var result = str.replace(country.data + ';','');

Thanks to comments, this should work more efficently :

var tmp = str.replace(country.data ,''); 
var result = tmp.replace(';;' ,';');

Try this :

var result = str.replace(country.data + ';','');

Try this :

var result = str.replace(country.data + ';','');

Thanks to comments, this should work more efficently :

var tmp = str.replace(country.data ,''); 
var result = tmp.replace(';;' ,';');
added 6 characters in body
Source Link
osmanraifgunes
  • 1.5k
  • 2
  • 18
  • 43

Try this :

var result = str.replace(country.data + ';','');

Try this :

var result = str.replace(country.data,'');

Try this :

var result = str.replace(country.data + ';','');
Source Link
osmanraifgunes
  • 1.5k
  • 2
  • 18
  • 43

Try this :

var result = str.replace(country.data,'');