I am having hard time solving this particular problem
input: [{"acks":"6"},{"acks":"7"},{"acks":"8"}]
regex: [\{]*["acks:"]
current output: [6},7},8}]
desired output: [6,7,8]
I am facing problem with the ending curly braces.
Thank you for helping me in advance!!
This should work for the described case:
Result:
[6,17,888]I can see that there are some comments that instead of "acks" key might be any symbols, hence I would suggest to use next regexp
(\{.*?:\")*(\"})*see https://regex101.com/r/kfAYsQ/1input:
[{\"key1\":\"6\"},{\"key2\":\"17\"},{\"key3\":\"888\"}]result:
[6,17,888]