in reply to Re^2: regex to add network line-endings if required.
in thread regex to add network line-endings if required.
s/\015\012|\012\015|\012|\015/\015\012/g;
Update: I got that order wrong, as BrowserUk suggests. I had the shorter versions on the left, and the longer on the right. The above is fixed.
It should help you with things like this to take a good, hard look at the perlre section of the standard Perl docs. You should have a copy of the standard Perl docs on your system, but if not, perlre is on search.cpan.org too.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: regex to add network line-endings if required.
by BrowserUk (Patriarch) on Feb 15, 2005 at 19:00 UTC | |
by mr_mischief (Monsignor) on Feb 15, 2005 at 20:27 UTC |