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


Regexp-MinLength documentation  | view source Contained in the Regexp-MinLength distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

DESCRIPTION

Top

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

USAGE

Top

MinLength(regular_expression)

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

EXAMPLE

Top

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

SEE ALSO

Top

See Regexp::Parser

AUTHOR

Top

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

COPYRIGHT AND LICENSE

Top


Regexp-MinLength documentation  | view source Contained in the Regexp-MinLength distribution.