For one possible implementation of your combine subroutine, consider:
use Regexp::Assemble; sub combine { my $str = Regexp::Assemble->new->add(@_)->as_string; qr/($str)/; }
- another intruder with the mooring in the heart of the Perl
In reply to Re^3: Regex Subexpressions
by grinder
in thread Regex Subexpressions
by BenjiSmith
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |