rindex() should work or substr() using a negative number as the offset

> -----Original Message-----
> From: Yacketta, Ronald [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 12, 2002 4:32 PM
> To: begin begin
> Subject: RegEx question
> 
> 
> All,
> 
>       Have a quick regex question here ;)
> 
>       What is the sequence to search for a string backwards? 
>       IE:
> 
>       03:17am    up 36 days, 49 mins,  load average: 1.90, 1.83, 1.75
> 
>       Instead of splitting/searching what have you to get the middle
> number (1.83)
>       I think it would be easier to start at the end of the 
> line and work
> backwards.
> 
> 
> Regards,
> 
> 
> Ronald J. Yacketta
> Principal Consultant
> Ciber, INC
> 345 Woodcliff Dr.
> Fairport, NY 14450
> --------------------------------------------------------------
> ---------
> The information transmitted is intended only for the person 
> or entity to
> which it is addressed and may contain confidential and/or privileged
> material. 
> 
> Any review, retransmission, dissemination or other use of, or 
> taking of 
> any action in reliance upon, this information by persons or 
> entities other 
> than the intended recipient is prohibited. 
> 
> If you received this in error, please contact the sender and 
> delete the 
> material from any computer.
> -- 
> 
> -----Original Message-----
> From: drieux [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 12, 2002 16:10
> To: begin begin
> Subject: Re: :Telnet question
> 
> 
> 
> On Monday, August 12, 2002, at 11:21 , Joe Mecklin wrote:
> 
> > Thanks Drieux,
> >
> > You put me on the right track.  Working through your 
> suggestion made me
> > realize I also needed a sleep between seeing the prompt and 
> sending the
> > data (something also required in the Expect script but 
> inconveniently
> > forgotten <g>).  I've been able to successfully connect multiple
> > concurrent times now.
> [..]
> 
> I'm not sure that 'sleep' is the correct notion,
> if you go into the 'waitfor() you will probably
> find that it is going
> 
>       branch and get casual
> 
> until it finds the token you want in the stream.
> 
> so your code merely needed to remember to
> push the right password back at it.
> 
> there is i believe a Perl::Expcext type
> parser.. of some sort.
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to