Help for this page

Select Code to Download


  1. or download this
    substr($str, $start_idx, $length) =
       '<b>' . substr($str, $start_idx, $length) . '</b>';
    
  2. or download this
    my $index = 0;
    my $replace = "<b>$seq</b>";
    while (($index = rindex($str, $seq, $index)) >= 0) {
       substr($str, $index, length($seq)) = $replace;
    }