my $commitlog = "CNR12345 commit to hook check"; my ($cnr_number) = $commitlog =~ /^(CNR[0-9]+)/m or die("You must enter a valid CNR\n"); print("CNR number is $cnr_number\n");
$ perl a.pl CNR number is CNR12345
In reply to Re^5: Using grep on windows
by ikegami
in thread Using grep on windows
by rogermills
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |