NAME
Catmandu::Util::Regex - Regex related utility functionsFUNCTIONS
- as_regex($str)
- Escapes and quotes the given string as a regex.
- substituter($search, $replace)
- Builds a function that performs a regex substitution.
my $ltrimmer = substituter('^[\h\v]+', ''); $ltrimmer->(" eek! "); # => "eek! "
2023-03-03 | perl v5.36.0 |