in reply to Help with regex
Remove all non-letter and non-digit characters from your header and then do a case-insensitive comparison. Something like
$header =~ s/[^a-zA-Z0-9]//g; if( $header =~ /header1|header2/i ) { ... [download]
UPDATE: changed /I to /i