Help for this page

Select Code to Download


  1. or download this
    my $text = 'This test creates a [color=blue] blue [/color] word. And a
    + [color=red] red [/color] one';
    
  2. or download this
    my ($color,@colors);
    my $new = $text;
    ...
    @colors = $new =~ m/\[color=.*\]/gi;
    
    print @colors;
    
  3. or download this
    [color=blue]
    [color=red]