Possible Duplicate:
How to increase each number in a string?
In JavaScript how could I replace every number in a string with that number + 20?
So, this string: "min: 300px and max: 600px, min: 800px"
Would end up as "min: 320px and max: 620px, min: 820px"
Maybe the shortest version: