Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    my ($third_regexed) = $string =~ /^[^\|]+\|[^\|]+\|([^\|]+)\|.*/;
    
    print "splitted: $third\nregexed: $third_regexed\n";
    
  2. or download this
    splitted: blabla2
    regexed: blabla2