I create a regex to match a string, now I need to extract n times a group of characters from the string.
Something like this:
{"Group 1":{"Name":"A","Name":"B",....,"Name":"Z"},{"Group 2":{"Name":"AA","Name":"BB",....,"Name":"ZZ"}}
I create the regex \\"Group 1.\*?\\}
now I want to extract all the names from group 1 only with this rule Name\\":\\"(.\*?)\\"
.
If I use \\"Group 1.\*?Name\\":\\"(.\*?)\\".\*?\\}
it only extracts the first result, but I need all of them.
Any idea? Thanks