<?php $pattern = '#^(?:(?:/(?P<peekaboo>[^/\.,;?\n]+))?/(?P<action>[^/\.,;?\n]+))?$#'; if (preg_match($pattern, '/foo/bar', $matches)) { var_dump( $matches); }
You have javascript disabled. You will not be able to edit any code.