Sample text:
Itaú [123.456,89]
To get what's inside the brackets (including the brackets) I used:
\[(.*?)\]
The question is how to get what's out?
I suppose it's a denied list, something simple. I already searched more than hours and nothing.
If possible, I also wanted to know how to get what's inside the bracket, not including the brackets?
All in a single expression, without prolonging the code [pedals].
Sample text can be:
"Itaú 1 [123.456,89]", "Itaú 2 [543.456,59]", "Banco do Brasil [987.543,21]", etc.
That is, they include accents, more than one word, soon there are spaces, and it may happen to start with numbers.