Skip to content

Commit

Permalink
mention non-capturing groups
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 19, 2015
1 parent 1722184 commit 5a1fa9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Guides/Routing.pod
Expand Up @@ -504,8 +504,8 @@ expression C<(bender|leela)>.

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.
placeholders become part of a larger regular expression internally,
non-capturing groups C<(?:...)> are fine though.

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

0 comments on commit 5a1fa9f

Please sign in to comment.