The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Catalyst::DispatchType::Regex - Regex DispatchType

SYNOPSIS

See Catalyst.

DESCRIPTION

METHODS

$self->list($c)

Output a table of all regex actions, and their private equivalent.

$self->match( $c, $path )

Check path against compiled regexes, and set action to any matching action. Returns 1 on success and 0 on failure.

$self->register( $c, $action )

Registers one or more regex actions for an action object.\ Also registers them as literal paths.

Returns 1 on if any regexps were registered.

$self->register_regex($c, $re, $action)

Register an individual regex on the action. Usually called from the register action.

AUTHOR

Matt S Trout Sebastian Riedel, sri@cpan.org

COPYRIGHT

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.