How does one use a [ ] bracket inside a place like \subfigure[ ...caption... ]?

Edit: nevermind, you can enclose it in a { } to escape it. E.g. \subfigure[foo { [0,1] } bar.] ...