Hi can anyone please help me solve regex issue

Hi @Chippy_Kolot

You can try with Regex expression

System.Text.RegularExpressions.Regex.Match(YourString,"(?<=\d\n~)(\S+)(\n\n~)(\S.+)")Groups(1)

Output : FINALSUM & FINALDATA
System.Text.RegularExpressions.Regex.Match(YourString,"(?<=\d\n~)(\S+)(\n\n~)(\S.+)")Groups(3)

Output : DATA# & PA RT#