I am really confused how to word this question. I need to take some portion of string that enclosed in square bracket.
Please see the example
Re: [115] VFA 1 von 04/11/2012 bis 04/12/2012 mit-1221
This is somebody sending as subject of mail. I need to retrieve the number 115 from the square bracket . If there are more than square bracket came , position of this will be first at any point
How could I fix that.
EDIT
I wish could I’ve get all instances of [] in the string
Re: [115] [12] VFA 1 von 04/11/2012 bis 04/12/2012 mit-1221
Thanks
You can do this with regular expressions: