<?php $url='script.php?a=0&page=0'; $url+='asdfad'; $i=2; echo preg_replace('/page=\d+/','page='.$i,$url); ?>
You have javascript disabled. You will not be able to edit any code.