I have these strings and they can come in a variety of ways such as:
id=PS\\ Old\\ Gen, value=34
and id=Code\\ Cache,value=22
etc.
I would like a regex that would extract anything after the =
to the ,
so basically: PS\\ Old\\ Gen
and Code\\ Cache
etc.
I have written the following regex but can't seem to get the last word before the ,
.
(([a-zA-z]+)\\{2})+
Any thoughts? This is for go language.