- or download this
my $str="Study Protocol Number NBXF317N2201";
my ($term) = $str =~ /Protocol (?:(?:No\.|Number)? )?([A-Z0-9]{12})/;
print $term;
- or download this
my $str="Study Protocol Number NBXF317N2201";
my ($term) = $str =~ /Protocol (?:(?:No\.?|Number) )?([A-Z0-9]{12})/;
print $term;
- or download this
use strict;
use warnings;
...
my ($term) = $str =~ /Protocol (?:No\. |No |Number |)([A-Z0-9]
+{12})/;
print "$term\n";
}