Re: pexpect regex help

2007-02-23 Thread amadain
On Feb 23, 8:53 am, "amadain" <[EMAIL PROTECTED]> wrote: > On Feb 23, 8:46 am, "amadain" <[EMAIL PROTECTED]> wrote: > > > > > On Feb 21, 11:15 pm, [EMAIL PROTECTED] wrote: > > > > On Feb 21, 6:13 pm, [EMAIL PROTECTED] wrote: > > > > > I have apexpectscript to walk through a cisco terminal server an

Re: pexpect regex help

2007-02-23 Thread amadain
On Feb 23, 8:46 am, "amadain" <[EMAIL PROTECTED]> wrote: > On Feb 21, 11:15 pm, [EMAIL PROTECTED] wrote: > > > > > On Feb 21, 6:13 pm, [EMAIL PROTECTED] wrote: > > > > I have apexpectscript to walk through a cisco terminal server and I > > > was hoping to get some help with this regex because I rea

Re: pexpect regex help

2007-02-23 Thread amadain
On Feb 21, 11:15 pm, [EMAIL PROTECTED] wrote: > On Feb 21, 6:13 pm, [EMAIL PROTECTED] wrote: > > > > > I have apexpectscript to walk through a cisco terminal server and I > > was hoping to get some help with this regex because I really suck at > > it. > > > This is the code: > > > index = s

Re: pexpect regex help

2007-02-21 Thread jonathan . sabo
On Feb 21, 6:13 pm, [EMAIL PROTECTED] wrote: > I have a pexpect script to walk through a cisco terminal server and I > was hoping to get some help with this regex because I really suck at > it. > > This is the code: > > index = s.expect(['login: ', pexpect.EOF, pexpect.TIMEOUT]) > i

pexpect regex help

2007-02-21 Thread jonathan . sabo
I have a pexpect script to walk through a cisco terminal server and I was hoping to get some help with this regex because I really suck at it. This is the code: index = s.expect(['login: ', pexpect.EOF, pexpect.TIMEOUT]) if index == 0: m = re.search('((#.+\r\n){20,25})