use regex lookaround instead of plain groups