using (?{CODE}) is 0 width (no replacement), and I can't get it to work in the replacement section anyway.s/SUM(\d*)/sum($1)/g sub sum()
Originally posted as a Categorized Question.
In reply to Subroutines in a regex? by heidkamp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |