in reply to Question about conditional regex capture
So just use capturing parens in your regexp and compare the number to 3. You don't have to do everything in a regexp.
if( /(\d+\.\d+\.(\d+)\.\d+)/ and $2 > 3 ) { print $1, "<br />\n"; } [download]