31 Mar 2015 14:00:20 UTC
- Distribution: Catalyst-DispatchType-Regex
- Module version: 5.90035
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (1739 / 1 / 0)
- KwaliteeBus factor: 13
- 87.10% Coverage
- License: perl_5
- Activity24 month
- Download (14.28KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionMGRIMES Mark Grimes
Catalyst::DispatchType::Regex - Regex DispatchType
Status: Deprecated. Regex dispatch types have been deprecated and removed from Catalyst core. It is recommend that you use Chained methods or other techniques instead. As part of the refactoring, the dispatch priority of Regex vs Regexp vs LocalRegex vs LocalRegexp may have changed. Priority is now influenced by when the dispatch type is first seen in your application.
When loaded, a warning about the deprecation will be printed to STDERR. To suppress the warning set the CATALYST_NOWARN_DEPRECATE environment variable to a true value.
Dispatch type managing path-matching behaviour using regexes. For more information on dispatch types, see:
Catalyst::Manual::Intro for how they affect application authors
Catalyst::DispatchType for implementation information.
Output a table of all regex actions, and their private equivalent.
Checks path against every compiled regex, and offers the action for any regex which matches a chance to match the request. If it succeeds, sets action, match and captures on $c->req and returns 1. If not, returns 0 without altering $c.
Registers one or more regex actions for an action object. Also registers them as literal paths.
Returns 1 if any regexps were registered.
Register an individual regex on the action. Usually called from the register method.
returns a URI for this action if it can find a regex attributes that contains the correct number of () captures. Note that this may function incorrectly in the case of nested captures - if your regex does (...(..))..(..) you'll need to pass the first and third captures only.
Catalyst Contributors, see Catalyst.pm
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Catalyst::DispatchType::Regex, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Catalyst::DispatchType::Regex
For more information on module installation, please visit the detailed CPAN module installation guide.