0

I have this string:

{text"{id1}"},{text"{id2}"}

I'm using this regex:

{.*"{id2}"},?

But I'm getting the whole string and what I want to get is only this:

{text"{id2}"}

And if I use use id1 in the regex I want to get:

{text"{id1}"}

How can I do this?

0 Answers0