So the output is wrong, then.
s/\s+(?=<)//g; s/(?<=>)\s+//g; [download]
In reply to Re^3: space before and after by ikegami in thread space before and after by Anonymous Monk