in reply to Re^3: regex doubt on excluding
in thread regex doubt on excluding

Thank you hdb... it worked...

its working with $string =~ s/^\s*?\n/\n/mg; too... :-)