-
-
23 Jun 2022 05:58:04 UTC
- Distribution: SPVM-Regex
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (120 / 0 / 0)
- Kwalitee
Bus factor: 1- % Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (11.32KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- USER_NAME<USER_MAIL>
- Dependencies
- SPVM::Unicode
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
SPVM::Regex::Replacer - Interface Type for Regex Replacement Callback
SYNOPSYS
use Regex::Replacer; use Regex; my $replacer = (Regex::Replacer)method : string ($re : Regex) { my $replaced_string_match = "AB" . $re->captures->[0] . "C"; return $replaced_string_match; }); my $string = "abc"; my $re = Regex->new("ab(c)"); my $replaced_string = $re->replace_all_cb($string, 0, $replacer);
DESCRIPTION
Regex::Replacer is the interface type for the regex replacement callback.
INTERFACE METHODS
required method : string ($re : Regex)
The implementation must receive a Regex object and return the string after the replacement.
Module Install Instructions
To install SPVM::Regex, copy and paste the appropriate command in to your terminal.
cpanm SPVM::Regex
perl -MCPAN -e shell install SPVM::Regex
For more information on module installation, please visit the detailed CPAN module installation guide.