Thanks for your response. That actually did not work. I modified the expression to this:
$str =~ /Protocol ((?:No\.|Number?) )?([A-Z0-9]{12})/;The output I am now getting is "No.". Did I get your suggestion right? Thanks!
In reply to Re^2: Extract pattern from string
by madbee
in thread Extract pattern from string
by madbee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |