From: Austin S. <te...@of...> - 2009-02-16 17:22:09
|
On Mon, 16 Feb 2009 09:37:01 -0500 (EST) "Bryan Bueter" <br...@bu...> wrote: > > } > > ], > > '-re', '\[$tmp\]\sMP>\s', ## Should exit expect > > from here as'\[ > > per logic > > > > ); > > > > If your using single quotes $tmp wont be expanded. Try: > "\[$tmp\]\sMP>\s" and see if that works for you. I would try something like '\[' . $tmp . '\]\sMP>\s' If you use double quotes the regex engine will see [$tmp] instead of \[$tmp\] Austin |