scott oliver

scott oliver

  • NA
  • 82
  • 16.5k

Need to grab text between characters

Dec 28 2019 9:27 PM
Hello I am hoping someone may have a good idea. I am working with a file and need to grab all the text between two characters. Below is an example. I have found solutions for this using regex unfortunatly the posts were only about doing it once. I need to do it thousands of time. SO I will need to loop through and what I want to do is grab everything between [] and copy it to either a new string or a list or an array or something and delete what was copied then move to the next set of []. Ignore the garbage in the string below I just pasted the same section over and over but you get the idea I need everything between [] which every close of ] is a new set of information. 
 
["{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\"}]["{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\"}]["{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\"}]["{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\", "{\"manuf\": \"Unknown\"}]

Answers (1)