From a string, I have to find the 'value' for a particular key(variable)
to find a regex pattern to find the value between the quotes.
keyx:'value1',keyn:'value2', keys....
like for keyn - the regex must return value2
It is not a json format. This string is extracted from an XML tag.
I have tried this regex (["'])(?:(?=(\?))\2.)*?\1 and trying to modify it to make it work for my scenario