Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my @substrings = $string =~ /(>.+)/g;
    
    print Dumper \@substrings;
    
  2. or download this
    $VAR1 = [
              '> abcd1234',
              '>xyz123 '
            ];
    
  3. or download this
    $VAR2 = [
              '> abcd1234',
              'abcd abcd'
            ];