Get all text from req string till a empty line

Need to get the text from relatively till the empty line, Help with regex\string manipulation

Input

"clearly displaying a lot of text at relatively small font sizes is the most important thing I want a
monitor to do document to text. With the help of Optical Character Recognition (OCR),
you can
extract any text from a PDF document into a simple text file.

As an online service, this PDF to OCR converter doesn’t require installation or even registration to extract text from PDF files."

OutPut:

“relatively small font sizes is the most important thing I want a
monitor to do document to text. With the help of Optical Character Recognition (OCR),
you can
extract any text from a PDF document into a simple text file.”

@Sweety_Girl

Check as below

Is this you are looking for?

Hope this helps you

Thanks

@Sweety_Girl - Sorry Not clear… What you mean by

I missed out something they come in next line, we need to get all till the empty line

1 Like

@Sweety_Girl I was not able to do it solely using Regex, though I think there would be a way to do it. For now, I have used a combination of both Regex and String Manipulation to get the text required.

Check the Workflow below :
TakeOnlyPartOfString.zip (1.9 KB)

Check it with All possible input values that you have.

I have used regex to get the data from “relatively” to the end then used that part of data to take all the values upto the First “Empty New Line” using TakeWhile()

Revert back if it is not what you needed.