>>10209492
Install python and save this as brackets.py
# search a file, find an instance and print out the word following the instance
file = input("enter file name here: ")
try:
with open(file) as f:
for idx, line in enumerate(f,1):
line = line.rstrip()
pos = line.find('[') # store first position
while pos != -1: # only continue if found
atpos2 = line.find(']', pos) # find end after pos
info = line[pos+1:atpos2] # get part
pos = line.find('[',atpos2) # find next start after end
print(f'{info}')
except Exception as e: # maybe print the error as wellโฆ
print('stop being a stupid', e)
print('you are done')
then, in the same folder you saved the file, open a command prompt and type: python brackets.py
you will have to save the q-posts you are looking to pull the bracket words from in a separate file, when you run the command prompt, it will ask you for the file name. just put that file in the same folder you put brackets.py and you will be able to pull all the words from inside the brackets to a list.