in reply to Re^3: Question on Regex grouping
in thread Question on Regex grouping
Great! Just what I was looking for! Can I use the below mentioned approach to arrive at the same result?
if ($arr =~ /(\w*)(abc)(\d{5})/){ $a = $3 if (($arr =~ / (\w*)(def)(\d{8})/){ $b = $3 } } print $a; prnit $b;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Question on Regex grouping
by Anonyrnous Monk (Hermit) on Dec 21, 2010 at 07:12 UTC | |
by ajguitarmaniac (Sexton) on Dec 21, 2010 at 07:40 UTC | |
|
Re^5: Question on Regex grouping
by AnomalousMonk (Archbishop) on Dec 22, 2010 at 05:38 UTC |