I'm looking to match any text and non text values, located within " " , but only between the 1st and the last instance of [[ and ]]
window.google.ac.h(["text",[["text1",0],["text2",0,[3]],["text3",0],["text4",0,[3]],["text5",0],["text6",0],["text7",0 ]],{"q":"hygjgjhbjh","k":1}])
So far I've managed to get some results (far from ideal) by using: "(.*?)",0 The issue I have is the it either matches all the way until
"text4",0,[3]]
or starts matching at
["text",
I only need to match text1 text2 text3 .. text7
Notes: double square bracket position and nr of instances, between the 1st and the last is not consistent.
Thanks for your help guys!
Edit: I'm using http://regexr.com/ to test it