function showmn(txt) {
var txt = txt.replace(\x02(.*?)(?:\x02|$),'<b>\1</b>')
this.document.body.innerHTML=this.document.body.innerHTML+txt;
}
its a valid regex that does what i want in several languages and regex tools but in javascript i get an error saying an object is expected and sign 25 is wrong :/ any idea's ? i use this to replace mircs bold codes to proper html codes
var txt = txt.replace(\x02(.*?)(?:\x02|$),'<b>\1</b>')
this.document.body.innerHTML=this.document.body.innerHTML+txt;
}
its a valid regex that does what i want in several languages and regex tools but in javascript i get an error saying an object is expected and sign 25 is wrong :/ any idea's ? i use this to replace mircs bold codes to proper html codes