If you are worried about huge file sizes (or you have to handle a stream), you can read a file a byte/char at a time until you find a run of either of your two regexes and then process the line up to that point.
In reply to Re: Newlines: reading files that were created on other platforms
by aufflick
in thread Newlines: reading files that were created on other platforms
by bobf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |