Re: Question regarding lists and regex

2006-11-09 Thread Ant
On Nov 9, 6:29 am, Prabhu Gurumurthy <[EMAIL PROTECTED]> wrote: ... > regex: I presume this is rather a dumb question, anyways here it comes! as you > can see from my program, pattIp = r\d{1,3}\ etc, is there any other easy > way > to group the reptitions, instead of typing the same regex 4

Re: Question regarding lists and regex

2006-11-08 Thread Paul McGuire
"Prabhu Gurumurthy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Here is a simple program, which queries /var/log/daemon on my OpenBSD box > and gets the list of valid ntp peers. > > Questions: > what is the easiest way for me to create lists on the fly, by that I mean > like pe

Question regarding lists and regex

2006-11-08 Thread Prabhu Gurumurthy
Here is a simple program, which queries /var/log/daemon on my OpenBSD box and gets the list of valid ntp peers. Questions: what is the easiest way for me to create lists on the fly, by that I mean like perl push my @foo, something_from_say_stderr. The reason is as you can ip = [""] statement b