Help for this page

Select Code to Download


  1. or download this
    My string is:
    
    $string = "hello = 1234ab;cat;dog;4892";
    
  2. or download this
    my $semiColon=2;
    if ( $string =~ /hello.*=(\s*.*;\s*){$semiColon}(\s*.*;\s*).*/i )
    
    my $substring = $2;