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

Thank you Athanasius.

I got it worked with $string =~ s/\s*?\n/\n/mg;