将段落分成几行

时间:2017-11-07 01:57:09

标签: ruby

说我有这个段落......

Before you can begin to determine what the composition of a particular paragraph will be. you must first decide on an argument and a working thesis statement for your paper. What is the most important idea that you are trying to convey to your reader. The information in each paragraph must be related to that idea. In other words. your paragraphs should remind your reader that there is a recurrent relationship between your thesis and the information in each paragraph. A working thesis functions like a seed from which your paper. and your ideas, will grow. The whole process is an organic one—a natural progression from a seed to a full-blown paper where there are direct, familial relationships between all of the ideas in the paper.

我将使用哪些代码,以便将此段分开为单独的行?像这样......

Before you can begin to determine what the composition of a particular paragraph will be.

you must first decide on an argument and a working thesis statement for your paper. 

What is the most important idea that you are trying to convey to your reader. 

The information in each paragraph must be related to that idea. 

In other words. 

your paragraphs should remind your reader that there is a recurrent relationship between 
your thesis and the information in each paragraph.

A working thesis functions like a seed from which your paper. 

and your ideas, will grow.

The whole process is an organic one—a natural progression from a seed to a full-blown paper where there are direct, familial relationships between all of the ideas in the paper.

我正在考虑使用gsub,但我认为这是不可能的。有什么建议吗?

1 个答案:

答案 0 :(得分:1)

我认为这很有效。

.split(/(?<=[\.\?\!])\s*/).each { |i| puts i; puts '' }
相关问题