in reply to Re: Can you do "conjunctive" (overlapping) conditions in a single regexp?
in thread Can you do "conjunctive" (overlapping) conditions in a single regexp?
Thanks & very clever (probably too clever for my little brain ;)- I'm trying though to see whether I can use case #1, rather than your much hairier second example.
I actually want to preserve the field and keep it with the split, so prior to adding the length limitation, I was using:
And I want to get only the greediest match (that satisfies the length condition). So, does that mean I can't use first alternative then?split /(?=$regex)/, $string
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Can you do "conjunctive" (overlapping) conditions in a single regexp?
by tilly (Archbishop) on Dec 18, 2008 at 04:55 UTC | |
by puterboy (Scribe) on Dec 18, 2008 at 05:52 UTC | |
by tilly (Archbishop) on Dec 18, 2008 at 19:37 UTC | |
by ikegami (Patriarch) on Dec 18, 2008 at 19:41 UTC |
In Section
Seekers of Perl Wisdom