This replaces the first and last n in each n run with ^ (rather than quoting the n run). It also "quotes" all n runs, not just the first and last as required by the OP.
In reply to Re^2: replace fist and last occurrences of N
by GrandFather
in thread replace fist and last occurrences of N
by ini2005
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |