Get a paragraph that contains one sentence that ends on the signs?
-
Good afternoon, tell me how to get a paragraph that is between the folding lines contains one sentence that ends on the signs.
For example, there is a text:
"1)Airbus Industrie began as a consortium of European aviation firms
to compete with American companies such as Boeing, McDonnell Douglas, and Lockheed. While many European aircraft were innovative, even the most successful had small production runs.
2)In 1991, Jean Pierson, then CEO and Managing Director of Airbus
Industrie, described a number of factors which explained the dominant position of American aircraft manufacturers.
3)The land mass of the United States made air transport the favoured
mode of travel; a 1942 Anglo-American agreement entrusted transport aircraft production to the US; and World War II had left America with a profitable, vigorous, powerful and structured aeronautical industry.
4)The retention of production and engineering assets by the partner
companies in effect made Airbus Industrie a sales and marketing company. This arrangement led to inefficiencies due to the inherent conflicts of interest that the four partner companies faced.
5)BAE Systems and EADS transferred their production assets to the new
company, Airbus SAS, in return for shareholdings in that company. ♪
We consider, for example, the second paragraph and the fourth paragraph. In the fourth sentence, it doesn't fit. One thing, one thing.
It was possible to get the paragraph:
preg_match_all("/^[\r\n](.*)[\r\n]/m", $text, $content);
And here's how one proposal is to be distinguished and to know that it has not found one solution.
(.*|\.|\?|\!)
but no result.
-
Response to comments
preg_match_all("/^(.*)(?<=[.?!])$/m", $text, $content);