var a = "fasdfasdf 283|fasdfasdfasdf|fasdf|Región II " console.log("a.replace(/\|.+$/, 'Country')");
var a = "fasdfasdf 283|fasdfasdfasdf|fasdf|Región II " alert(a.replace(/[^|]+$/, 'Country'));