3
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 is outside?
I imagine it’s a denied list, something simple. I’ve searched over time and nothing.
If possible, I also wanted to know how to get what is inside the bracket, without including the brackets?
All in one expression, without prolonging the code [pedaling].
Example text can be:
"Itaú 1 [123.456,89]", "Itaú 2 [543.456,59]", "Banco do Brasil [987.543,21]", etc.
That is, include accents, more than one word, so it has spaces and can occur starting with numbers.
Is there another example? the lines always start with a-Z0-9 followed by conchetes?
– rray
Example text can be "Itaú 1 [123.456,89]", "Itaú 2 [543.456,59]", "Banco do Brasil [987.543,21]", etc. That is, include accents, more than one word, so it has spaces and can occur to start with numbers.
– Danilo Tostes