I am trying to get all the matches with a string starting with [& and ends with ] (for example [&Prueba]).
So far I have this expression \[&.*]
The problem is that if I have two or more matches, it considered them as one, I mean for example
dsdd [&xD]s wpxxxxx.php [&dsdd]
The regular expression throws one match, this: [&xD]s wpxxxxx.php [&dsdd] and I want to get two results: [&xD] and [&dsdd]
How can I get that? I have tried several things and I'm still not getting it.
Thanks and regards!