I have a JSON String which is:
{"dependencies":["xz","pkg-config","glib","gobject-introspection"],"conflicts_with":[],"caveats":null,"options":[{"option":"--universal","description":"Build a universal binary"}]}
And I wrote a regular expression to find the array behind "dependencies":
(?<=\"dependencies\":).*[^:](?=,)
in Java:
"(?<=\\\"dependencies\\\":).*[^:](?=,)"
However the result turns out:
["xz","pkg-config","glib","gobject-introspection"],"conflicts_with":[],"caveats":null,"options":[{"option":"--universal"
And only the last colon was excluded.
Please help me out.