fork(2) download
  1. #!/usr/bin/perl
  2. $text = "Ax0ddFAx49-444 test\n";
  3. $pattern = qr/([0-9a-z]{10}-[0-9a-z]{3})/i;
  4.  
  5. if ($text =~ m/$pattern/ ) {
  6. #true;
  7. print "$1";
  8. }
Success #stdin #stdout 0s 3564KB
stdin
Standard input is empty
stdout
Ax0ddFAx49-444