Remove blank row when read text file

Hi everyone.

I have read pdf file and got text as below picture.

I want to remove all row which highlight red.

How to do this ?

Thanks in advance!

image

Hi @Mr.H

This can be performed using regex. Does the line to be deleted start with a single digit?
If possible share a sample text

1 Like

Hi Bro.

I have read pdf and received this string.

Does the line to be deleted start with a single digit? >> Yes…

Thanks in advance!

Try this in assign with string variable on left side and on the right side write the expression given below-

System.Text.RegularExpressions.Regex.Replace(yourString, "^\d\s?\r?\n", "",System.Text.RegularExpressions.RegexOptions.Multiline)
1 Like

This post can be useful for you

Thanks you very much Bro!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.