You could use a combination of lookbehind and lookahead:
perl -pe "s[(?<=\d{5})\s+(?=\d{8})][\n]g" t.txt
In reply to Re^4: repeat data at one line and grep as pre-set format
by BrowserUk
in thread repeat data at one line and grep as pre-set format
by benlaw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |