Skip to content

Commit

Permalink
documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 26, 2014
1 parent 30850e6 commit fedce7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Mojolicious/Guides/Routing.pod
Expand Up @@ -400,10 +400,10 @@ expression C<(bender|leela)>.
$r->route('/:name', name => [qw(bender leela)])
->to(controller => 'foo', action => 'bar');

You can also adjust the regular expressions behind placeholders to better suit
your needs. Just make sure not to use C<^> and C<$> or capturing groups
C<(...)>, because placeholders become part of a larger regular expression
internally, C<(?:...)> is fine though.
You can also adjust the regular expressions behind placeholders directly, just
make sure not to use C<^> and C<$> or capturing groups C<(...)>, because
placeholders become part of a larger regular expression internally, C<(?:...)>
is fine though.

# /23 -> {controller => 'foo', action => 'bar', number => 23}
# /test -> undef
Expand Down

0 comments on commit fedce7c

Please sign in to comment.