Re: OT: novice regular expression question

2004-12-31 Thread It's me
Oops! Sorry, didn't realize that. Thanks, "M.E.Farmer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > It's me wrote: > > The shlex.py needs quite a number of .py files. I tried to hunt down > a few > > of them and got really tire. > > > > Is there one batch of .py files that I

Re: OT: novice regular expression question

2004-12-30 Thread M.E.Farmer
It's me wrote: > The shlex.py needs quite a number of .py files. I tried to hunt down a few > of them and got really tire. > > Is there one batch of .py files that I can download from somewhere? > > Thanks, Not sure what you mean by this. Shlex is a standard library module. It imports os and sys

Re: OT: novice regular expression question

2004-12-30 Thread It's me
The shlex.py needs quite a number of .py files. I tried to hunt down a few of them and got really tire. Is there one batch of .py files that I can download from somewhere? Thanks, "M.E.Farmer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello me, > Have you tried shlex.py it

Re: OT: novice regular expression question

2004-12-30 Thread M.E.Farmer
Hello me, Have you tried shlex.py it is a tokenizer for writing lexical parsers. Should be a breeze to whip something up with it. an example of tokenizing: py>import shlex py># fake an open record py>import cStringIO py>myfakeRecord = cStringIO.StringIO() py>myfakeRecord.write("['1','2'] \n 'fdfdfd

Re: OT: novice regular expression question

2004-12-30 Thread It's me
I'll chew on this. Thanks, got to go. "Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It's me wrote: > > > I am never very good with regular expressions. My head always hurts > > whenever I need to use it. > > > Well, they are a pain to more than just you, and the c

Re: OT: novice regular expression question

2004-12-30 Thread RyanMorillo
check jgsoft dot com, they have2 things witch may help. Edit pad pro (the test version has a good tutorial) or power grep (if you do a lot of regexes, or the mastering regular expressions book from Orielly (if yo do a lot of regex work) Also the perl group would be good for regexes (pythons are P

Re: OT: novice regular expression question

2004-12-30 Thread Steve Holden
It's me wrote: I am never very good with regular expressions. My head always hurts whenever I need to use it. Well, they are a pain to more than just you, and the conventional advice is "even when you are convinced you need to use REs, try and find another way". I need to read a data file and p

OT: novice regular expression question

2004-12-30 Thread It's me
I am never very good with regular expressions. My head always hurts whenever I need to use it. I need to read a data file and parse each data record. Each item on the data record begins with either a string, or a list of strings. I searched around and didn't see any existing Python packages tha