Is your data a string? Where does it come from?
There's probably a better way to accomplish what your main goal is. If you describe your situation a little more fully you'll probably get some good suggestions.
In reply to Re: How to use regex to get brackets surrounding something
by 1nickt
in thread How to use regex to get brackets surrounding something
by lazycoder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |