1 package TestApp::Controller::Action::Regexp;
4 use base 'TestApp::Controller::Action';
6 sub one : Action Regex('^action/regexp/(\w+)/(\d+)$') {
8 $c->forward('TestApp::View::Dump::Request');
11 sub two : Action LocalRegexp('^(\d+)/(\w+)$') {
12 my ( $self, $c ) = @_;
13 $c->forward('TestApp::View::Dump::Request');
16 sub three : Action LocalRegex('^(mandatory)(/optional)?$'){
17 my ( $self, $c ) = @_;
18 $c->forward('TestApp::View::Dump::Request');
21 sub four : Action Regex('^action/regexp/redirect/(\w+)/universe/(\d+)/everything$') {
22 my ( $self, $c ) = @_;
24 $c->uri_for($c->action, $c->req->captures,
25 @{$c->req->arguments}, $c->req->params