Re: tough regex problem

Karsten Sperling <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Message-ID <[email protected]>
How about
  /.*?$sep|.+|^\z/sg
Seems to work alright for empty file as well as incomplete lines,
without producing bogus empty lines.

- Karsten
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.