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 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 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()