in reply to flip-flop interpolation

how to make second to work?

Don't try to make it work, use something else :)

saving matching pattern with flip-flop operator, Flipin good, or a total flop?, Why doesn't the flip-flop operator work in all scalar contexts?, The Scalar Range Operator, grep flip flop (range operator)