DOKK / manpages / debian 12 / libcatmandu-perl / Catmandu::Util::Regex.3pm.en
Catmandu::Util::Regex(3pm) User Contributed Perl Documentation Catmandu::Util::Regex(3pm)

Catmandu::Util::Regex - Regex related utility 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! "
    
2023-03-03 perl v5.36.0