Re: Expect Regex Trouble...
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Expect Regex Trouble...

From: Wojciech Kocjan <hceicjow.backward@kocjan.org>
Date: Thu Dec 22 2005 - 20:10:46 CET

On Thu, 22 Dec 2005 20:02:08 +0100, suchenwi
<richard.suchenwirth-bauersachs@siemens.com> wrote:

> Two more things:
> -You can append more than one item to a string variable: append var
> this that ...
> - If you append in pieces, you can {brace} those pieces that contain
> backslash escapes, so you don't have to double or triple them:
> append regexp "Index: $shelf.$slot.$basefabric.1" {[\n\r]+
> \s*atisBasePortMacAddress =[\n\r]+}
> append regexp {\s*00.00.00.00.00.00} ......
> So you can build it up in convenient mouthfuls, without overlong or
> continued lines.

Yes, that too :-)

-- 
WK
Received on Fri Dec 23 19:03:02 2005