|
Hello,
well if the string you would like to check for presence of another string located in $string1 variable and checking stuff located in $string2 variable - your regular expression is correct.. if you want to search without capitalization you have to add /i modifier to the end of your regular expression
like this: if ($string1 =~ /$string2/i)
hope this will help you..
|