I have a long paragraph from which I wanted to split using the following pattern [a-z,A-Z,0-9]\n[a-z,A-Z,0-9]\n[a-z,A-Z,0-9]\n
.i.e
I want to make a split based on few sentence followed by new line(the sequence should be repeated thrice and then split should be made).
I am not getting how can I write this sequence inside the split function.
Please help.
Starting text: 'Hello World! The decision about what to put into your paragraphs begins with the germination of a seed of ideas; this “germination process” is better known as brainstorming.\n There are many techniques for brainstorming; whichever one you choose, this stage of paragraph development cannot be skipped. \n Building paragraphs can be like building a skyscraper: there must be a well-planned foundation that supports what you are building.\n Any cracks, inconsistencies, or other corruptions of the foundation can cause your whole paper to crumble.\nThe decision about what to put into your paragraphs begins with the germination of a seed of ideas; this “germination process” is better known as brainstorming.\nThere are many techniques for brainstorming; whichever one you choose, this stage of paragraph development cannot be skipped.
I want to split the above paragraph into 2 sections.
First section should be:
Hello World!The decision about what to put into your paragraphs begins with the germination of a seed of ideas; this “germination process” is better known as brainstorming.There are many techniques for brainstorming; whichever one you choose, this stage of paragraph development cannot be skipped. \n Building paragraphs can be like building a skyscraper: there must be a well-planned foundation that supports what you are building.
Second section should be:
Any cracks, inconsistencies, or other corruptions of the foundation can cause your whole paper to crumble.The decision about what to put into your paragraphs begins with the germination of a seed of ideas; this “germination process” is better known as brainstorming.There are many techniques for brainstorming; whichever one you choose, this stage of paragraph development cannot be skipped.