Help for this page

Select Code to Download


  1. or download this
    my $str = 'Hello World!';
    
    ...
    s/^/[/g
    s/$/]/g
    s/([A-Z])/lc($1)/eg
    
  2. or download this
    my @substitutions;
    
    ...
    s/^/[/g
    s/$/]/g
    s/([A-Z])/lc($1)/eg