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.
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?
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