Re: How do I redirect output to a file and to the console screen?

2005-12-29 Thread 28tommy
Thank U. -- http://mail.python.org/mailman/listinfo/python-list

How do I redirect output to a file and to the console screen?

2005-12-28 Thread 28tommy
Hi there, I'm doing some TELNET and FTP sessions with my scripts. I need to redirect all the output (and not just what I print) to an output file, but still be able to see the session in process on the console. The Console screen is of less importance, so I could give it up, but what I'm looking

Re: I want to exclude an expression of a sequence of charecters with regex

2005-12-28 Thread 28tommy
Thanks. -- http://mail.python.org/mailman/listinfo/python-list

I want to exclude an expression of a sequence of charecters with regex

2005-12-27 Thread 28tommy
Hello all, I know how to exclude 1 charecter from a compiled sequence of the re module- '[^a]', but if I want to exclude a word or a sequence as one unit (not as separate charecters) to be checked how do I do that? I tried re.compile('[^(abc)]') ... or re.compile('[^a][^b][^c]') ... or re.com

Re: Trying to find regex for any script in an html source

2005-12-25 Thread 28tommy
Thank you all. -- http://mail.python.org/mailman/listinfo/python-list

Trying to find regex for any script in an html source

2005-12-21 Thread 28tommy
Hi, I'm trying to find scripts in html source of a page retrieved from the web. I'm trying to use the following rule: match = re.compile('') I'm testing it on a page that includes the following source: