D
dogplayingpoker
I have text that looks like this:
###
FOUR SCORE and seven years ago
our fathers brought forth on
this continent
A NEW NATION conceived
in liberty and dedicated
to the proposition
that all men are created equal
NOW WE ARE ENGAGED in a great civil war
testing whether that nation
OR ANY NATION
so conceived and so dedicated
can long endure
WE ARE MET ON A GREAT battle-field
of that war
###
There is no regularity to the number of lower-cased rows between th
capitalized rows, nor is there any regularity to how many letters ar
capitalized at the beginning of the capitalized rows. I want the outpu
to look like this, so that Excel combines rows, adding a space at th
front and starting a new row when it hits a capital letter:
###
FOUR SCORE and seven years ago our fathers brought forth on thi
continent
A NEW NATION conceived in liberty and dedicated to the proposition tha
all men are created equal
NOW WE ARE ENGAGED in a great civil war testing whether that nation
OR ANY NATION so conceived and so dedicated can long endure
WE ARE MET ON A GREAT battle-field of that war
###
And to make things even more complicated, sometimes the lower-cased row
actually start with a single capitalized letter. So really, I want it t
start a new row when it hits more than TWO capital letters in a row.
Any ideas? Thanks in advance
###
FOUR SCORE and seven years ago
our fathers brought forth on
this continent
A NEW NATION conceived
in liberty and dedicated
to the proposition
that all men are created equal
NOW WE ARE ENGAGED in a great civil war
testing whether that nation
OR ANY NATION
so conceived and so dedicated
can long endure
WE ARE MET ON A GREAT battle-field
of that war
###
There is no regularity to the number of lower-cased rows between th
capitalized rows, nor is there any regularity to how many letters ar
capitalized at the beginning of the capitalized rows. I want the outpu
to look like this, so that Excel combines rows, adding a space at th
front and starting a new row when it hits a capital letter:
###
FOUR SCORE and seven years ago our fathers brought forth on thi
continent
A NEW NATION conceived in liberty and dedicated to the proposition tha
all men are created equal
NOW WE ARE ENGAGED in a great civil war testing whether that nation
OR ANY NATION so conceived and so dedicated can long endure
WE ARE MET ON A GREAT battle-field of that war
###
And to make things even more complicated, sometimes the lower-cased row
actually start with a single capitalized letter. So really, I want it t
start a new row when it hits more than TWO capital letters in a row.
Any ideas? Thanks in advance