I've notifications system on my app and document title is updating with addition of total number of notifications just like facebook and twitter. I want it to remove number with parantheses just after user's click to a button.
document.title = dc.replace(/\(([^)][\d]+)\)/, "");
this is what I use but it's not working. i'm not that good with regex. All I want to do is replace (10) My Website's Homepage with My Website's Homepageon click.
thanks.