If you don't need any wildcards use index
if (index($str1,$str2) != -1) { ... } [download]
In reply to Re: Stupid question about strings... by RichardK in thread Stupid question about strings... by kepler