[Phpmyadmin-devel] regexp question

Sebastian Mendel lists at sebastianmendel.de
Sat Mar 18 02:57:10 CET 2006


Marc Delisle schrieb:
> Hi,
> in this line:
> $is_gotofile     = preg_replace('@^([^?]+).*$@', '\\1', $goto);
> 
> does the character class [^?] mean "a character different than the 
> question mark" ?

yes


> What's the goal of this line?

all after first '?' is removed


script.php?var=1&var2=44

becomes

script.php


-- 
Sebastian




More information about the Developers mailing list