Find the characters inside the last two "

Suppose I have this text


how do I get "aaa1" from this?

I tried this one (?<=").*(?=") but it does not work.


>Solution :

You could always parse the JSON itself. However, if it has to be regex, I tested this and it seems to work.


Important note: The JSON must be a one-liner with no spaces between the last " and }

Leave a Reply