Re: [Tutor] Continue Matching after First Match

2007-05-21 Thread Tom Tucker
Alan & Martin, Thanks for the feedback and suggestions. Kodos is a great tool. I use it regularly to debug my regex mistakes. It can also be a excellent learning tool to those unfamiliar with regular expressions. Thanks for the Python-LDAP link and ldif example code. On 5/20/07, Martin Wals

Re: [Tutor] Continue Matching after First Match

2007-05-20 Thread Martin Walsh
Hi Tom, Tom Tucker wrote: > Why the cStringIO stuff? The input data shown below is collected from > os.popen. I was trying to find an easy way of matching my regex. Ah, ldap... > Matching with a string seemed easier than looping through the ouput > collected. Hmm. Come to think of it, I gu

Re: [Tutor] Continue Matching after First Match

2007-05-19 Thread Alan Gauld
"Tom Tucker" <[EMAIL PROTECTED]> wrote > The below code snipet works as designed, however the regex matches > once and > exits. I want it to continue matching and printing until EOF. Any > suggestions? Does re.findall() help? Alan G. ___ Tutor m

Re: [Tutor] Continue Matching after First Match

2007-05-18 Thread Tom Tucker
Disregard! Looks like part of my problem is the regex string. On 5/18/07, Tom Tucker <[EMAIL PROTECTED]> wrote: Please forgive the colors, just trying to help illustrate my question. The below code snipet works as designed, however the regex matches once and exits. I want it to continue match

[Tutor] Continue Matching after First Match

2007-05-18 Thread Tom Tucker
Please forgive the colors, just trying to help illustrate my question. The below code snipet works as designed, however the regex matches once and exits. I want it to continue matching and printing until EOF. Any suggestions? Why the cStringIO stuff? The input data shown below is collected fr