I am getting a user input in the form of
key1=value1,key2=value2,key3=value3
and there can be any number of key value pairs,
I have written following regular expression to evaluate above string.
[a-z0-9]+(:|=)[a-z0-9]+
but I am not so sure , how to check the multiple of key value pairs, this string I have written can evaluate one key value pair, I want it make it evaluate hole string of key value pairs. highly appreciate any advice on this
Try
To remove a trailing comma