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