|User: chenjia -- 2011-06-30 << 811 813 >>|
|Type: Advanced search and replace|
|Search all Advanced search and replace examples|
|How to Split one line to four line or five line, each line contains 3 or 5 sentences?|
|Article Title |
line 1: sentences 1. sentences 2. sentences 3. sentences 4. sentences 5. sentences 6. sentences 7. sentences 8.
sentences 9. sentences 10
|Article Title |
line 1: sentences 1. sentences 2. sentences 3. sentences 4.
line 2:sentences 5. sentences 6. sentences 7.
line 3: sentences 8.sentences 9. sentences 10
|Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.|
|We can either split one line to 4~5 lines, or each line contains 3~5 sentences, but can not support both AT THE SAME TIME. |
Following procedure is to split one line into lines with 3 to 5 sentences randomly, by trying to add newline "\n" randomly after each period ".":
1. ctrl-o open source text file
2. ctrl-h open 'replace' dialog
* set 'replace unit' to 'Chars'
* set 'replace scope' to 'Line'
* set 'search for pattern' to:
* set 'replace with pattern' to:
* set "If=>" to:
3. click "Replace", done!
4. ctrl-s save to file.
Screenshot 1: Replace_Window
|How to shuffle all sentences ended by period within each line? (61%)|
How to split/parse lines into sentences outside two delimiters? (59%)
How to split one line into two lines from middle? (58%)
How to split a single line into many lines according by Special symbols (55%)
How to split each line of text into 2 lines with same number of characters? (54%)
How to insert lines between sentences with specified order? (53%)
How to sort all the lines of a text file randomly? (53%)
How to break down each line into 3 lines at specific position? (52%)
Check Demo of Advanced search and replace
|sentences newline period sentence randomly support contains random rando rand newline after add sentences replace sentences replace newline search period replace period add line after split by lines|