to:
But this does two operations where it seems like one should
suffice. Does someone know of a way to do this in a single
operation?I would suggest:
‘abcSTARTdef,ghi,jkl,ENDmno’.match(/START(.*)END/)[1].split(’,’)
I don’t know of a way to accomplish it in one step.
I don’t think it’s possible without lookbehind assertions. Maybe
Oniguruma supports this.
Regards,
Dan