I have one multiline text box. This box contains large string which has new line breaks.I want to display first 10 chars of each line or paragraph in a multiple text. My multiple text box contains more than 100k chars. Is there any best solution to retrieve string using regex?
Example input:
this is sample test
I am from australia
I am from India
The expected output is the first 10 chars of each new line/paragraph followed by ...
this is sam...
I am from a..
I am from I..