I want a common regex to validate below comma separated strings.
input: 10.25.02.12:19092,10.25.02.12:29092,10.25.02.12:39092,10.25.02.12:49092 => should pass
input: at-sdf-dfds-in,at-dfd-in-32,at-wtn-df-df-dfd-in => should pass
input: localhost:19092,localhost:29092,localhost:39092,localhost:49092 => should pass
input: strg1,strg2,strg3 => should pass
input: localhost:19092, => should fail as comma at the end
Please help in this. Thanks in advance.