in reply to Regexp magic needed, truncate incomplete XML
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regexp magic needed, truncate incomplete XML
by Anonymous Monk on Nov 24, 2005 at 09:02 UTC |