let strTest = `
"The issue": "L'oggetto ",
"issue": 'oggetto "novo" ',
let regExp = /["'](.*?)["']\s*?:\s*?['"](.*?)["']/gm;
You can use backreferences:
This will include the quotes, in the tokenized string, but you can then remove them from the produced match by taking only the even numbered tokens.
As @TJ Crowder points out, this will not work correctly if the string contains escaped quotes in the form of
\" within the string. In order to completely accommodate those escaped quotes and not break on strings like
\\"(an escaped backslash preceding a quote) you will need to parse with multiple regexes or take a different tactic
The other thing you might want to look at, if this is coming from JSON, is ignoring regex, and just iterating through the properties of your json object. It depends if the string you're getting is coming in as valid json or not.