stallion has asked for the wisdom of the Perl Monks concerning the following question:
im a newbie to perl and i want to extract tags from the following:
[check-->PERLMONKS_001] [check-->PERLMONKS_002] [check-->PERLMONKS_003]
The o/p should be
PERLMONKS_001 PERLMONKS_002 PERLMONKS_003
The snippet im trying is
if($array[$i] =~ /Check-->\s*\d+$/) { $Output= $1;
i dont know where im making mistake ..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pattern matching
by Ratazong (Monsignor) on Jan 13, 2012 at 10:57 UTC | |
|
Re: Pattern matching
by ww (Archbishop) on Jan 13, 2012 at 14:59 UTC | |
|
Re: Pattern matching
by hbm (Hermit) on Jan 13, 2012 at 14:11 UTC | |
|
Re: Pattern matching
by umasuresh (Hermit) on Jan 13, 2012 at 10:48 UTC | |
by pklausner (Scribe) on Jan 13, 2012 at 14:20 UTC |