Help for this page

Select Code to Download


  1. or download this
    my $file = 'file013.txt';
    (my $sk = $file) =~ s/^.*?(\d+).*$/$1/;
    
  2. or download this
    my $boring_string = '...when I want to keep most of the string...';
    (my $exciting_string = $boring_string) =~ s/(keep)/<b>$1</b>/;