Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Two-dimensional match/regex?by Aristotle (Chancellor) |
on May 22, 2002 at 14:26 UTC ( [id://168433]=note: print w/replies, xml ) | Need Help?? |
You're best of with an array of lines here, I think. Try to match the first regex against each line in succession, if it does use pos with substr and regex with a ^ anchor for the following line(s).
Makeshifts last the longest.
In Section
Seekers of Perl Wisdom
|
|