LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 161
Default Extract paragraphs from text file

I have a huge text file that contains paragraphs
separated by dotted borders. Each border
is a line of stars such as: ****************

What is an efficient way to selectively extract
paragraphs and append them to a new text file?
I will only select a paragraph if it does not
contain profanity words or other select words.

For example, given this input:

------BEGIN INPUT-------
Hello. This is a short novel written
by someone.
********************
I dont give a **** who reads this.
********************
Hey, sometimes **** happens, but
you gotta keep going.
********************
The end!
********************
------END INPUT-------

The output should be:

OUTPUT FILE:
Hello. This is a short novel written
by someone.
The end!



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How Do I Replace Paragraphs With New Paragraphs In Excel? vselin1 Excel Discussion (Misc queries) 7 July 29th 09 04:21 PM
how to format large word paragraphs into an excel file dingbat Excel Worksheet Functions 1 June 16th 09 07:14 PM
formating text cell paragraphs roypea Excel Discussion (Misc queries) 1 January 30th 08 06:03 PM
Getting paragraphs of text into a textbox control Gordon[_2_] Excel Programming 5 August 19th 05 08:47 AM
Text paragraphs and image Mika[_2_] Excel Programming 1 July 23rd 03 02:38 AM


All times are GMT +1. The time now is 04:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"