scratch that, actually my suggestion is just this:

I change the regex to:

/ \d+.?[\d+.][\w]/g

I then use this for the replaceState bit and use Peter's suggestion for string replace on the document and page title.