<?php $html = <<<HTML <a href="/xsearch2?q=some search/21">21</a> HTML; echo preg_replace('#/(\d+)(?=">)#', '&page=$1', $html, 1);
You have javascript disabled. You will not be able to edit any code.