Just as a side note here - that ? to make the match non-greedy. You have anchors at both ends (^ $), so greediness shouldn't come into play here. You actually do want to match as much as possible.
Yeah, I know. Really minor. :-)
In reply to Re^2: Simple Regular Expression Help Needed
by Tanktalus
in thread Simple Regular Expression Help Needed
by PerlBear
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |