<?php $request = '/test.php?action=save&key=e7s2uHhKKtcM32cHKUKM&login=test'; preg_match("#^/test\.php\?action=save&key=(\w+)&login=(\w+)$#", $request, $match); print_r($match);
Standard input is empty
Array ( [0] => /test.php?action=save&key=e7s2uHhKKtcM32cHKUKM&login=test [1] => e7s2uHhKKtcM32cHKUKM [2] => test )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!