in reply to Re: Extract pattern from string
in thread Extract pattern from string
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Extract pattern from string
by hdb (Monsignor) on Jul 04, 2013 at 06:08 UTC | |
by madbee (Acolyte) on Jul 04, 2013 at 07:15 UTC | |
|
Re^3: Extract pattern from string
by AnomalousMonk (Archbishop) on Jul 04, 2013 at 19:23 UTC |