Skip to content

Commit

Permalink
just mention the regular expressions in the tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 3, 2015
1 parent d04e9db commit 190d2d9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/Mojolicious/Guides/Tutorial.pod
Expand Up @@ -305,8 +305,9 @@ L<Mojolicious::Plugin::DefaultHelpers> and L<Mojolicious::Plugin::TagHelpers>.
=head2 Placeholders

Route placeholders allow capturing parts of a request path until a C</> or
C<.> separator occurs, results are accessible via
L<Mojolicious::Controller/"stash"> and L<Mojolicious::Controller/"param">.
C<.> separator occurs, similar to the regular expression C<([^/.]+)>. Results
are accessible via L<Mojolicious::Controller/"stash"> and
L<Mojolicious::Controller/"param">.

use Mojolicious::Lite;

Expand All @@ -330,7 +331,8 @@ L<Mojolicious::Controller/"stash"> and L<Mojolicious::Controller/"param">.

=head2 Relaxed Placeholders

Relaxed placeholders allow matching of everything until a C</> occurs.
Relaxed placeholders allow matching of everything until a C</> occurs, similar
to the regular expression C<([^/]+)>.

use Mojolicious::Lite;

Expand All @@ -348,7 +350,7 @@ Relaxed placeholders allow matching of everything until a C</> occurs.
=head2 Wildcard placeholders

Wildcard placeholders allow matching absolutely everything, including C</> and
C<.>.
C<.>, similar to the regular expression C<(.+)>.

use Mojolicious::Lite;

Expand Down

0 comments on commit 190d2d9

Please sign in to comment.