extract only "ababab"

Solution already provided at the Duplicate