replace substring from regex by a more generic solution : Some(reg) & group()