That would be the perfect way, if the /e modifier wasn't specifically designed to provide a means of executing code on the RHS of the s/// operator, without jumping through that hoop.
Dave
In reply to Re^2: using functions within regex
by davido
in thread using functions within regex
by palkia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |