m/Rescue21.+patch.+DiffList\.txt/ #### { local $_ = $mystring; if( /Rescue21/ && /patch/ && /DiffList.txt/ ) { #.... } }