Mojolicious-Plugin-PlainRoutes
view release on metacpan or search on metacpan
lib/Mojolicious/Plugin/PlainRoutes.pm view on Meta::CPAN
path => qr{ / [^#\s]* }x,
arrow => qr{ -> }x,
scope => qr( { | } )x,
action => qr{ [\w\-:]* \. \w* }x,
name => qr{ \( [^)]+ \) }x,
eol => qr{ \n }x,
space => qr{ [^\S\n]+ }x,
);
my @words = grep { defined && length }
split m{( $grammar{comment}
| $grammar{verb}
| $grammar{path}
| $grammar{arrow}
| $grammar{scope}
| $grammar{action}
| $grammar{name}
| $grammar{eol}
| $grammar{space}
)}x, $input;
( run in 2.129 seconds using v1.01-cache-2.11-cpan-71847e10f99 )