public function whenRegex($pattern, $name, $methods = null)
	{
		if ( ! is_null($methods)) $methods = array_map('strtoupper', (array) $methods);

		$this->regexFilters[$pattern][] = compact('name', 'methods');
	}
public function whenRegex($pattern, $name, $methods = null)
	{
		if ( ! is_null($methods)) $methods = array_map('strtoupper', (array) $methods);

		$this->regexFilters[$pattern][] = compact('name', 'methods');
	}
public function whenRegex ( $ pattern , $ name , $ methods = null ) { if ( ! is_null ( $ methods ) ) $ methods = array_map ( 'strtoupper' , ( array ) $ methods ) ; $ this -> regexFilters [ $ pattern ] [ ] = compact ( 'name' , 'methods' ) ; }
Register a regular expression based filter with the router.

@param  string     $pattern
@param  string     $name
@param  array|null $methods
@return void
Register a regular expression based filter with the router .