Wow that's complex. And for what, to handle \r|\n|\r\n? Even in portable applications that's not necessary. But if you need that functionality for some other reason, converting to \r|\n|\r\n to \n first then just dealing with \n would be much much simpler. Probably faster too.
In reply to Re^2: Extract Multiple Lines from the End of a multi-line string
by ikegami
in thread Extract Multiple Lines from the End of a multi-line string
by NateTut
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |