View Single Post
Old 09-16-2002, 11:44 PM   PM User | #2
Inci
New Coder

 
Join Date: Aug 2002
Location: Moscow, RU
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Inci is an unknown quantity at this point
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..
Inci is offline   Reply With Quote