Remove CRLF To Reformat Text Files
Posted: Sat Jan 28, 2012 3:20 am
Hi,
I've searched for hours both in help and this forum but can't find the answer to what I'm sure must be a simple question so sorry if this is an obvious answer.
I have text files which have been hard formatted with lines word-wrapped at a fixed number of characters with a CRLF.
I want to remove the CRLF between words, so the text can flow in longer paragraphs.
So I've tried lots of permutations of finding:
word character - space - CR - LF - word character
and replacing with:
word character - space - word character
I can successfully find the patter, but can't replace.
I've tried loads of variations of:
$1 $5
to replace the word character, then a space, then the last word character, but without the CRLF
each time I get a "$1i is not a valid subexpression"
I'm obviously making a simple mistake, and after all these hours spent searching, would be really grateful for some help?
Thanks,
Robin
I've searched for hours both in help and this forum but can't find the answer to what I'm sure must be a simple question so sorry if this is an obvious answer.
I have text files which have been hard formatted with lines word-wrapped at a fixed number of characters with a CRLF.
I want to remove the CRLF between words, so the text can flow in longer paragraphs.
So I've tried lots of permutations of finding:
word character - space - CR - LF - word character
and replacing with:
word character - space - word character
I can successfully find the patter, but can't replace.
I've tried loads of variations of:
$1 $5
to replace the word character, then a space, then the last word character, but without the CRLF
each time I get a "$1i is not a valid subexpression"
I'm obviously making a simple mistake, and after all these hours spent searching, would be really grateful for some help?
Thanks,
Robin