Convert named regex groups to regular groups