Thanks. That looks pretty straightforward. Is it possible to use that all on a command line invocation? Right now I have something like:
and then a follow-up to expand wrapper2 and the delimited fields within.perl -pe "s/^(.*?)\t(.*?)\|(.*?)\t(.*?)(?=\n)/<wrapper1>$1</wrapper1>< +wrapper2>$2\|$3</wrapper2><wrapper3>$4</wrapper3>/g;" inputfile
In reply to Re^3: Recursive substitution difficulties
by wx27
in thread Recursive substitution difficulties
by wx27
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |