s/<br>\K( +)/" " x length($1)/eg; [download]
In reply to Re: Replace leading Spaces after a tag by ikegami in thread Replace leading Spaces after a tag by Anonymous Monk