![]() |
|
|
+ Search |
![]()
|
Dec 1st, 2003 13:04
Jakub Vrana, Arman Galstyan,
<?php
ereg_replace("(\\?(.*&)?)qid=[^&]*", "\\1");
?>
\\? - question mark
(.*&)? - optional parts before qid
[^&]* - everything before first & (or to the end, if & is missing)
Remember, parameters in URL are separated by &.