in reply to Re^2: process multiline text and print in desired formatin thread process multiline text and print in desired format
There is no need to match the whitespace at the beginning of lines. A match can start anywhere.