$str = "a\xFFabb"; $str = "aa\xFFbb"; $str = "aabb\xFF"; #### if ($str =~ "aabb") { print "match found\n"; } else { print "no match\n"; }