Re: Need help capturing output of re.search

2008-06-26 Thread John Machin
On Jun 27, 10:45 am, [EMAIL PROTECTED] wrote: > On Jun 26, 5:12 pm, John Machin <[EMAIL PROTECTED]> wrote: > > > > > On Jun 27, 10:01 am, [EMAIL PROTECTED] wrote: > > > > >You may like to read this:http://www.amk.ca/python/howto/regex/ > > > > This is a good resource. Thank you. > > > Someone else

Re: Need help capturing output of re.search

2008-06-26 Thread joemacbusiness
On Jun 26, 5:12 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Jun 27, 10:01 am, [EMAIL PROTECTED] wrote: > > > >You may like to read this:http://www.amk.ca/python/howto/regex/ > > > This is a good resource.  Thank you. > > Someone else pointed out that I needed to change the > > > if reCheck == "

Re: Need help capturing output of re.search

2008-06-26 Thread John Machin
On Jun 27, 10:01 am, [EMAIL PROTECTED] wrote: > >You may like to read this:http://www.amk.ca/python/howto/regex/ > > This is a good resource. Thank you. > Someone else pointed out that I needed to change the > > if reCheck == "None": > > to > > if reCheck == None: # removed the "s "Somebody els

Re: Need help capturing output of re.search

2008-06-26 Thread joemacbusiness
>You may like to read this: http://www.amk.ca/python/howto/regex/ This is a good resource. Thank you. Someone else pointed out that I needed to change the if reCheck == "None": to if reCheck == None: # removed the "s This worked great! Thanks! --JM -- http://mail.python.org/mailman/listin

Re: Need help capturing output of re.search

2008-06-26 Thread John Machin
On Jun 27, 8:31 am, [EMAIL PROTECTED] wrote: > Hi - > > I need help capturing the output of a RegEx search. > I dont understand why this conditional fails. > > Here is the code: > > #= start snip > == > #!/usr/local/bin/python > >

Need help capturing output of re.search

2008-06-26 Thread joemacbusiness
Hi - I need help capturing the output of a RegEx search. I dont understand why this conditional fails. Here is the code: #= start snip == #!/usr/local/bin/python import os import re dirName = '/home/user/bin/logs' os.chdir(dir