s{\t([^\t]+)\t}{ my $s = "|$1"; $s =~ s{\|([^|]*)\|([^|]*)}{<name>$1</name><value>$2</value>}sg; $s }eg;
In reply to Re^2: Recursive substitution difficulties
by ikegami
in thread Recursive substitution difficulties
by wx27
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |