(\?|\&|\&)PHPSESSID=[a-zA-Z0-9]{32}$ (\?|\&|\&)PHPSESSID=[a-zA-Z0-9]{32}(\&|\&)(.*) $1$3