Javascript – How to create a ReGex that matches separated words inside a square brackets?
I have the following string: [I need some fresh air H2O]. What's the RegEx that matches the following words? I, need, some, fresh, air, H2O. Basically, each word inside the square brackets. I searched everywhere, couldn't find it. Every result…