$text='sd(sd)sd'; $a='sd(sd)sd'; if ($text=~/$a/) { print "yes"; } else { print "no"; } [download]
In reply to pattern match special char by Selvakumar