Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    my $data = 'abcd 2001020713';
    my @nums = $data =~ /\d+/g;
    print "$nums[0]\n";
    
  2. or download this
    use strict;
    use warnings;
    my $data = 'abcd 2001020713';
    my $number = $data =~ /\d+/g;
    print "$number\n";