larus has asked for the wisdom of the Perl Monks concerning the following question:
How can I remove those extra line breaks and get each sentence back to original form:A6.8.5 This is an example sentence A6.8.6 This is an example sentence
I have tried something like this:A6.8.5 This is a example sentence A6.8.6 This is a example sentence
..snip.. $line =~ s/\r(?!\n)/ /g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to remove extra line breaks (using regexp)?
by ikegami (Patriarch) on Apr 17, 2009 at 14:07 UTC | |
by larus (Acolyte) on Apr 17, 2009 at 14:12 UTC | |
by ikegami (Patriarch) on Apr 17, 2009 at 14:40 UTC | |
by Anonymous Monk on Apr 17, 2009 at 15:15 UTC | |
|
Re: How to remove extra line breaks (using regexp)?
by bichonfrise74 (Vicar) on Apr 18, 2009 at 05:18 UTC | |
by Anonymous Monk on Apr 18, 2009 at 07:39 UTC |