how to remove item from string js code example Example: js remove string from string var ret = "data-123".replace(/data-/g,'');