in reply to trim the blank lines...regex

and, please, have a look at Writeup Formatting Tips re using <code> or <c> tags!