Hi,
I solved it By myself
my solution is here
javscript
var a = "";
var temp="";
function disp(str) {
if (str.match("{(.*)}")[1].indexOf("}") != -1) {
a = a + str.match("{(.*?)}")[1] + ";";
temp = str.match("{(.*)}")[0].toString().replace(str.match("{(.*)}")[1].toString().substr(0, str.match("{(.*)}")[0].toString().indexOf("}")), "");
disp(temp.substr(1));
}
else {
a = a + temp.substr(1).match("{(.*?)}")[1];
}
return a.replace("{","").replace("}","");
}
calling of function
var result=disp('User name {1234}hf{12}djfh{2212}')
alert(result);
it shows 1234;12;2212
Thank you,
happy Coding:)