in reply to Re: Re: Re: Not quite a simple split
in thread Not quite a simple split

Why don't you need the (?=\S) in this version? Because it doesn't match an empty string (in the first one, either part was optional which made both parts optional at the same time)?

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Not quite a simple split
by japhy (Canon) on Feb 02, 2004 at 19:16 UTC
    Absolutely correct (on both accounts).
    _____________________________________________________
    Jeff[japhy]Pinyan: Perl, regex, and perl hacker, who'd like a job (NYC-area)
    s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;