You are matching, but you are not capturing. You need the parens around the match.
@colors = $new =~ m/(\[color=.*\])/gi;
In reply to Re: Regexp
by mkmcconn
in thread regexp problem using custom markup
by kidd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |