That will delete any lines that don't end in a >. It will leave the newline from those lines, though. Season to taste.s/^.*[^>]$//gm;
In reply to Re: Regexp magic needed, truncate incomplete XML
by Roy Johnson
in thread Regexp magic needed, truncate incomplete XML
by starbuck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |