Leigh Metcalf > Regexp-MinLength-0.01 > Regexp::MinLength

Download:
Regexp-MinLength-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.01   Source  

NAME ^

Regexp::MinLength - Perl extension for determining the minimum matching length for a regular expression

SYNOPSIS ^

  use Regexp::MinLength qw(MinLength);
  my $min = MinLength($regex);

DESCRIPTION ^

This module determines the minimum matching length for a regular expression.

USAGE ^

MinLength(regular_expression)

Returns the minimum matching length, that is, the length of the shortest string that will match the given regular expression.

EXAMPLE ^

my $regex = "\\d"; my $min = MinLength($regex);

SEE ALSO ^

See Regexp::Parser

AUTHOR ^

Leigh Metcalf, <leigh@fprime.net<gt>

COPYRIGHT AND LICENSE ^

Copyright (C) 2008 by Leigh Metcalf

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.