RE: Breaking up Strings correctly:

2007-04-10 Thread Michael Yanowitz
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Adam Atlas Sent: Monday, April 09, 2007 11:28 PM To: python-list@python.org Subject: Re: Breaking up Strings correctly: On Apr 9, 8:19 am, Michael Yanowitz [EMAIL PROTECTED] wrote: Hello: I have been

Re: Breaking up Strings correctly:

2007-04-10 Thread Gabriel Genellina
En Tue, 10 Apr 2007 08:12:53 -0300, Michael Yanowitz [EMAIL PROTECTED] escribió: I guess what I was looking for was something simpler than parsing. I may actually use some of what you posted. But I am hoping that if given a string such as: '((($IP = 127.1.2.3) AND ($AX 15)) OR (($IP =

Breaking up Strings correctly:

2007-04-09 Thread Michael Yanowitz
Hello: I have been searching for an easy solution, and hopefully one has already been written, so I don't want to reinvent the wheel: Suppose I have a string of expressions such as: ((($IP = 127.1.2.3) AND ($AX 15)) OR (($IP = 127.1.2.4) AND ($AY != 0))) I would like to split up into

Re: Breaking up Strings correctly:

2007-04-09 Thread Paul McGuire
On Apr 9, 7:19 am, Michael Yanowitz [EMAIL PROTECTED] wrote: Hello: I have been searching for an easy solution, and hopefully one has already been written, so I don't want to reinvent the wheel: Suppose I have a string of expressions such as: ((($IP = 127.1.2.3) AND ($AX 15)) OR

Re: Breaking up Strings correctly:

2007-04-09 Thread Gerard Flanagan
On Apr 9, 1:19 pm, Michael Yanowitz [EMAIL PROTECTED] wrote: Hello: I have been searching for an easy solution, and hopefully one has already been written, so I don't want to reinvent the wheel: Suppose I have a string of expressions such as: ((($IP = 127.1.2.3) AND ($AX 15)) OR

Re: Breaking up Strings correctly:

2007-04-09 Thread Gabriel Genellina
En Mon, 09 Apr 2007 12:39:44 -0300, Paul McGuire [EMAIL PROTECTED] escribió: On Apr 9, 7:19 am, Michael Yanowitz [EMAIL PROTECTED] wrote: Suppose I have a string of expressions such as: ((($IP = 127.1.2.3) AND ($AX 15)) OR (($IP = 127.1.2.4) AND ($AY != 0))) I would like to split

Re: Breaking up Strings correctly:

2007-04-09 Thread Adam Atlas
On Apr 9, 8:19 am, Michael Yanowitz [EMAIL PROTECTED] wrote: Hello: I have been searching for an easy solution, and hopefully one has already been written, so I don't want to reinvent the wheel: Pyparsing is indeed a fine package, but if Paul gets to plug his module, then so do I! :) I