Scroll to navigation

Catmandu::Util::Regex(3pm) User Contributed Perl Documentation Catmandu::Util::Regex(3pm)

NAME

Catmandu::Util::Regex - Regex related utility functions

FUNCTIONS

Escapes and quotes the given string as a regex.
Builds a function that performs a regex substitution.

    my $ltrimmer = substituter('^[\h\v]+', '');
    $ltrimmer->("        eek! ");
    # => "eek! "
    
2020-06-06 perl v5.30.3