> Java using delimiter to show text only within brackets?

Java using delimiter to show text only within brackets?

Posted at: 2014-12-18 
Use the same method you used to remove the brackets.

I'm glad I could help.

Here is an example for you:

http://javablogx.blogspot.com/2014/09/ho...

It uses a Matcher

I need to take some text (for example..."Here is [some] text") and only print out "some". So remove all text that isn't inside the brackets, including the brackets themselves. I got the brackets to be removed, but not the rest of the text. Can anyone help me out with this? That would be great!