From: Bryan B. <br...@bu...> - 2007-07-06 12:45:30
|
> Hi All, > > This is the string I am passing to the expect > "Do you want to uninstall depot \w+ from \w+ which is dependent" > > But, I am not getting why it is failling to match following line which > is printed on the terminal. > "Do you want to uninstall depot VRTSvxfs from slpam09 which is dependent" > > Basically, If I remove the regular expression strings from the inputed > string to expect ie. remove \w+ with the exact word, then it is working > fine. I am not getting what I have done wrong. > > Please help. > > <<<<<<<<<<<<<<<< PART OF THE CODE <<<<<<<<< > push (@match_patterns, "Do you want to uninstall depot \w+ from \w+ > which is dependent" ) ; > $functions[$#functions+1] = \&send_yes ; > Try single quotes. I think perl will enterpret "\w+" as "w+". Hope that helps. Bryan http://sourceforge.net/projects/rover/ |