Typescript Variable Inside Regex Builder Java