P is for Practical | |
PerlMonks |
Re: Not able to capture informationby oko1 (Deacon) |
on Feb 17, 2012 at 06:29 UTC ( [id://954412]=note: print w/replies, xml ) | Need Help?? |
Man, that's one ugly regex. And I say that as a guy who's written a lot of ugly regexes. :) I _think_ (kinda hard to tell from your misformatted "desired answer" line) you're looking for something like this:
Prints:
Is that what you're looking for? Update: Whoops - I think I just figured out what the OP is asking... so there are two problems in his code. Revised solution. -- I hate storms, but calms undermine my spirits. -- Bernard Moitessier, "The Long Way"
In Section
Seekers of Perl Wisdom
|
|