Thanks for your reply! What I am really trying to do is to parse a batch of text files. In each file, I want to get each paragraph separately and do analysis within each paragraph. The code posted here is just an example.
When I copy and paste the text from the original text file and execute the code, I got the whole text back instead of each separately.
If the text I have does not separate paragraphs by blank lines, can I still get separately paragraphs?
Best RegardsIn reply to Re^4: Extract Paragraph From Text
by perlbeginneraaa
in thread Extract Paragraph From Text
by perlbeginneraaa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |