$str =~ /pat1/ or $str =~ /pat2/; #### $vulnerabilityText =~ m/^.+?Remediation Report\n\n(.+?)\n|^(.+?)\n/;