Thank you hdb... it worked...
its working with $string =~ s/^\s*?\n/\n/mg; too... :-)
In reply to Re^4: regex doubt on excluding by Anonymous Monk in thread regex doubt on excluding by Anonymous Monk