Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    s!\[color\](.*)\[/color\]!\[blue\]$1\[/blue\]!g for @sentences;
    s!\[/?color\]!!g for @sentences;
    print for @sentences;
    
  2. or download this
    This is  [blue]some text[/blue].
    This is a [blue]test oops![/blue]