Regex newline
Posted: Thu Dec 26, 2002 11:35 am
Hi,
Can anybody help me wit a RegEx problem I cannot get fixed.
I what to unwrap several lines.
All the lines beginning with a lowercase character should not be on various lines, but one single line.
ie:
This is
a test
for this RegEx.
This
too.
Must become:
This is a test for this RegEx.
This too.
For now I have found a way to get all lowercase: \n^[[:lower:]].
But what must I place in the replace with field? I have tried \1, but then \1 is filled into the text directly (I have regular expressins tagged).
Could someone help me here?
The above problem fixes only one problem, becuase I have still the problem to resolve about the tokens and upper characters in a textfile that not get corrected this way.
I you have any RegEx way to get text files with a fixed length into a "normal" unwrapped file I would like to know! This would help me a lot.
Thanks, JP
Can anybody help me wit a RegEx problem I cannot get fixed.
I what to unwrap several lines.
All the lines beginning with a lowercase character should not be on various lines, but one single line.
ie:
This is
a test
for this RegEx.
This
too.
Must become:
This is a test for this RegEx.
This too.
For now I have found a way to get all lowercase: \n^[[:lower:]].
But what must I place in the replace with field? I have tried \1, but then \1 is filled into the text directly (I have regular expressins tagged).
Could someone help me here?
The above problem fixes only one problem, becuase I have still the problem to resolve about the tokens and upper characters in a textfile that not get corrected this way.
I you have any RegEx way to get text files with a fixed length into a "normal" unwrapped file I would like to know! This would help me a lot.
Thanks, JP