Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Printing text b...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 14 Topic 10646 of 11751
Post > Topic >>

Printing text between two blank lines

by PlagueMagazine@[EMAIL PROTECTED] Feb 15, 2008 at 01:04 PM

I've been trying to use regular expressions or some kind of counter
thing, but I can't seem to work this right. I have data in a text file
where the im****tant thing I want to extract is between two blank
lines. That's the only systematic way to find the useful lines.

So, it'll go "blank line, im****tant stuff, blank line". There are
plenty of other lines of text that may be have a blank line before or
after it. But only the im****tant ones have both.

Is there a simple way to extract/print these lines? Thanks!
 




 14 Posts in Topic:
Printing text between two blank lines
PlagueMagazine@[EMAIL PRO  2008-02-15 13:04:24 
Re: Printing text between two blank lines
paul@[EMAIL PROTECTED] (  2008-02-16 13:00:35 
Re: Printing text between two blank lines
noreply@[EMAIL PROTECTED]  2008-02-16 13:24:26 
Re: Printing text between two blank lines
rvtol+news@[EMAIL PROTECT  2008-02-16 15:39:52 
Re: Printing text between two blank lines
noreply@[EMAIL PROTECTED]  2008-02-16 19:06:00 
Re: Printing text between two blank lines
rvtol+news@[EMAIL PROTECT  2008-02-17 11:37:52 
Re: Printing text between two blank lines
obduliosantana@[EMAIL PRO  2008-02-20 07:49:18 
Re: Printing text between two blank lines
noreply@[EMAIL PROTECTED]  2008-02-20 16:06:11 
Re: Printing text between two blank lines
obduliosantana@[EMAIL PRO  2008-02-20 12:31:56 
Re: Printing text between two blank lines
noreply@[EMAIL PROTECTED]  2008-02-20 23:13:36 
Re: Printing text between two blank lines
krahnj@[EMAIL PROTECTED]   2008-02-20 16:49:24 
Re: Printing text between two blank lines
obduliosantana@[EMAIL PRO  2008-02-21 08:18:45 
Re: Printing text between two blank lines
noreply@[EMAIL PROTECTED]  2008-02-21 16:39:19 
Re: Printing text between two blank lines
daggerquill@[EMAIL PROTEC  2008-02-22 17:18:24 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 3:08:39 CDT 2008.