Help for this page

Select Code to Download


  1. or download this
      my $string = 'Field1:  one';
      print "$1\n" if $string =~ /(?:Field1:|Field2:|Field3:)\s+(\w{3})/;
    
  2. or download this
      my $string = 'Field1:  one';
      print "$1\n" if $string =~ /Field\d:\s+(\w{3})/;