Wouldn't it be a smidgen better to use a negative char class and a + quantifier?
s{(<[^>]+>)}{ (my $x = $1) =~ tr/ /_/; $x; }eg;
In reply to Re: replace all spaces within anglebrackets with underscores
by danger
in thread replace all spaces within anglebrackets with underscores
by merlyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |