if ($string =~ /$input{'variable'}/gis) { #Some processing }