Transfer interval from regex to multiword