I'm trying to extract some data from a large string and I was wondering if it is possible to use regexp. Currently, I'm using javascript. For example:
This is some [example] text for my javascript [regexp] [lack] of knowledge.
With this string, I would like to generate a JSON array with the texts that are between the square brackets.
example, regexp, lack
I hope someone can help me do this in a simple way so I can understand how it works. Thank you in advance for your help. Daniel!