I have a bunch of text within which are sprinkled with lines that contain this:
top:1032
top:893
top:999
etc.
I would like to add, say, 1589 to each of these numbers, so that
top:1000 becomes top:2589
top:1032 becomes top:2721
etc.
I have gotten roughly this far:
$text = preg_replace(/top:/, ,$text);
Any ideas?
Thank you in advance