INPUT:- Warning: Found baddata Block list file: 231092
OUTPUT:- I need to capture the word between "found" and "block"
I tried the following (just snippet) but not working.Can someone help?#get blocking type if ( $match =~ /Warning: Found/ ) { $block_type = (split /:\s*/, $match)[1]; chomp $block_type; next LINE;
In reply to Regular expressionhelp by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |