Just doing /[\r\n]{1,2}/ will lose some blank lines on unix or mac input; and it's important to try to match the longer pattern first.split(/\r\n|\r|\n/);
In reply to Re: Re: Handling Mac, Unix, Win/DOS newlines at readtime...
by graff
in thread Handling Mac, Unix, Win/DOS newlines at readtime...
by strredwolf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |