say 'perl Perl PERL' =~ /${ \Re::re() }/g;
Abusing the internal representation of regular expressions, this also seems to work:
say 'perl Perl PERL' =~ /${Re::re()}/g;
In reply to Re^2: Use function as a regex
by salva
in thread Use function as a regex
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |