Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Regex reduxby petral (Curate) |
on Nov 20, 2002 at 02:36 UTC ( [id://214333]=note: print w/replies, xml ) | Need Help?? |
If you need to check the validity of the line, you can wrap that in something like (using the regex from Mastering Reg Exps as cited here): Or, of course combine them: if ( $line =~ /^\s*($iprx):\d+\s*->\s*($iprx):\d+\s*->\s*($iprx)/ ) {   p
In Section
Seekers of Perl Wisdom
|
|