Possible Duplicate:
Matching an integer between the brackets
What is the regex for matching an integer between the brackets? For example,
"ASDF[ 4 ]"
"ZXCd[6]"
"qwerr [ 77 ]"
Strings matched would be “4”,”6″,”77″
The problem is, I don’t know of any regex that can match the integers AND ignore the white spaces. Any thoughts?
Try this one,