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