# non-greedy dot-star @colors = $new =~ m/(\[color=.*?\])/gi; # say what you mean: match non-] characters @colors = $new =~ m/(\[color=[^\]]*\])/gi;
-- Mike
--
just,my${.02}
In reply to Re: Regexp
by thelenm
in thread regexp problem using custom markup
by kidd
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |