<?php $pat = ',(?P<controller>[[:alnum:]]+)/(?P<action>[[:alnum:]]+)/(?P<$1>.*?),'; $str = 'controller1/action1/fff'; preg_match($pat, $str, $matches); print_r($matches);
You have javascript disabled. You will not be able to edit any code.