Hi @Harshita_Ramesh
Try this:
System.Text.RegularExpressions.Regex.Replace(input,"\n.*\n.*","")
Regards