PLEASE HELP w/ regular expression

I have a group of data inside a text file like this

Disregarded Entities: The International Tax Aspects
by R. Peroni, ABA Tax Section 2002
…ns;title(disregarded entities w/3 international)

This is EXACTLY how it is formatted. Does anyone here know any regular
expression to slice it like this? so I can have them as single strings?

Disregarded Entities: The International Tax Aspects
by R. Peroni
ABA Tax Section
2002
…ns;title(disregarded entities w/3 international)

Hi,

···

At Sun, 8 Dec 2002 12:19:21 +0900, Dmitrii PapaGeorgio wrote:

I have a group of data inside a text file like this

Disregarded Entities: The International Tax Aspects
by R. Peroni, ABA Tax Section 2002
…ns;title(disregarded entities w/3 international)

This is EXACTLY how it is formatted. Does anyone here know any regular
expression to slice it like this? so I can have them as single strings?

Disregarded Entities: The International Tax Aspects
by R. Peroni
ABA Tax Section
2002
…ns;title(disregarded entities w/3 international)

gsub!(/ {8,}/, “\n”)


Nobu Nakada

print $a.gsub /,?\s\s+/, “\n”

Where $a is the text in question.

-Michael

···

On Sun, Dec 08, 2002 at 12:19:21PM +0900, Dmitrii PapaGeorgio wrote:

I have a group of data inside a text file like this

Disregarded Entities: The International Tax Aspects
by R. Peroni, ABA Tax Section 2002
…ns;title(disregarded entities w/3 international)

This is EXACTLY how it is formatted. Does anyone here know any regular
expression to slice it like this? so I can have them as single strings?

Disregarded Entities: The International Tax Aspects
by R. Peroni
ABA Tax Section
2002
…ns;title(disregarded entities w/3 international)