I want to do with regex (regular expression), as for example (if it's javascript):
var str = '[abc\[0123\]] [efg\[987\]h] [olá \[mundo\]!] [foo [baz]]';
str.match(/\[(.*?)\]/g);
Output: ["[abc[0123]", "[efg[987]h", "[olá [mundo]!", "[...
asked by
09.05.2016 / 18:32