use strict; use warnings; my $match = 'Warning: Found baddata Block list file: 231092'; if ( $match =~ /Warning: Found (\w+) Block/ ) { my $block_type = $1; print $block_type; }
In reply to Re: Regular expression help
by toolic
in thread Regular expressionhelp
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |