What characters can be used to parse Java paragraphs?

I believe people will get a funny from this person, but for my life, I can't find a separator, which will indicate when a new paragraph begins to appear in a string of text Words and lines? It's easy to get bored, but paragraphs seem harder to find I tried two line breaks in a row, paragraph breaks and line breaks in Unicode. I had no luck

Editor: I apologize for the ambiguity of my original question To answer some questions, it is a basic text file originally created on windows I'm testing some code to open and analyze its contents using the rim Eclipse Plug-in and blackberry JDE 4.5 Although the source of the files is windows (at least for the foreseeable future) and is basic text, I have no control over how they are created (it is a third-party source and I cannot access how it is created)

Solution

There is no such paragraph symbol in common use

Assuming that two or more line breaks (with optional horizontal spaces) in a line indicate paragraph breaks, you may escape But there are many exceptions to this "rule" For example, when a paragraph

>Interrupted by floating characters, or > contains key points

Then go on... Like this There may be no solution to that kind of thing

Editor @ Aiden's comments are as follows (it is now clear that this has nothing to do with OP, but may be related to others who find problems through Google, etc.)

You can consider specifying that your input should be in, for example, markdown syntax rather than trying to reverse design paragraphs from text; This is supported by stackoverflow The markdown wiki contains links to markdown parser implementations in many languages, including Java

(this assumes that you can control the input format of the text you want to try to parse into paragraphs, and so on.)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>