I have used ends-with function as (By.xpath("//input[ends-with(@id,'_PHONE$']"));
But it didnot work