[Tutor] Regular Expression help

2007-06-27 Thread Gardner, Dean
Hi I have a text file that I would like to split up so that I can use it in Excel to filter a certain field. However as it is a flat text file I need to do some processing on it so that Excel can correctly import it. File Example: tag descVR VM (0012,0042) Cl

Re: [Tutor] Regular Expression help

2007-06-27 Thread Tom Tucker
I think I have a solution. File (0012,0042) Clinical Trial Subject Reading ID LO 1 (0012,0050) Clinical Trial Time Point ID LO 1 (0012,0051) Clinical Trial Time Point Description ST 1 (0012,0060) Clinical Trial Coordinating Center Name LO 1 (0018,0010) Contrast/Bolus

Re: [Tutor] Beginner Game: Rock, Paper, Scissors

2007-06-27 Thread Johnny Jelinek
Cairo does do it to files, but -- that's from your source. That's for if you draw something with python and then want to save it to an svg. It doesn't take something that's already an svg and convert it or display it. PIL will let me take advantage of all kind of graphical formats, but not any t

Re: [Tutor] Regular Expression help

2007-06-27 Thread Kent Johnson
Gardner, Dean wrote: > Hi > > I have a text file that I would like to split up so that I can use it in > Excel to filter a certain field. However as it is a flat text file I > need to do some processing on it so that Excel can correctly import it. > > File Example: > tag desc

Re: [Tutor] Regular Expression help

2007-06-27 Thread Kent Johnson
Gardner, Dean wrote: > Hi > > I have a text file that I would like to split up so that I can use it in > Excel to filter a certain field. However as it is a flat text file I > need to do some processing on it so that Excel can correctly import it. > > File Example: > tag desc

Re: [Tutor] Regular Expression help

2007-06-27 Thread Mike Hansen
Argh... My e-mail program really messed up the threads. I didn't notice that there was already multiple replies to this message. Doh! Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Regular Expression help

2007-06-27 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gardner, Dean > Sent: Wednesday, June 27, 2007 3:59 AM > To: tutor@python.org > Subject: [Tutor] Regular Expression help > > Hi > > I have a text file that I would like to split up so that I > ca

Re: [Tutor] Regular Expression help

2007-06-27 Thread Reed O'Brien
On Jun 27, 2007, at 10:24 AM, Mike Hansen wrote: > > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Gardner, Dean >> Sent: Wednesday, June 27, 2007 3:59 AM >> To: tutor@python.org >> Subject: [Tutor] Regular Expression help >> >> Hi >> >> I have

[Tutor] Removing a file from a tar

2007-06-27 Thread Adam A. Zajac
I was reading over the documentation for the tarfile module and it occurred to me that there didn't seem to be a way to remove an individual file from the tar. For example, suppose I did this: import tarfile tar = tarfile.open("sample.tar", "w") tar.add("unwanted") tar.add("wanted") tar.close()

Re: [Tutor] Regular Expression help

2007-06-27 Thread Kent Johnson
Tom Tucker wrote: > #matchstr regex flow > # (\(\d+,\d+\)) # (0018,0014) > # \s # [space] > # (..*)# Contrast/Bolus Administration Route Sequence > # \s # space > # ([a-z]{2}) # SQ - two letters and no more > # \s # [s

Re: [Tutor] Regular Expression help

2007-06-27 Thread Kent Johnson
Gardner, Dean wrote: > Hi > > I have a text file that I would like to split up so that I can use it in > Excel to filter a certain field. However as it is a flat text file I > need to do some processing on it so that Excel can correctly import it. > > File Example: > tag desc

Re: [Tutor] Regular Expression help

2007-06-27 Thread Kent Johnson
Gardner, Dean wrote: > Hi > > I have a text file that I would like to split up so that I can use it in > Excel to filter a certain field. However as it is a flat text file I > need to do some processing on it so that Excel can correctly import it. > > File Example: > tag desc

Re: [Tutor] Regular Expression help

2007-06-27 Thread Kent Johnson
Gardner, Dean wrote: > Hi > > I have a text file that I would like to split up so that I can use it in > Excel to filter a certain field. However as it is a flat text file I > need to do some processing on it so that Excel can correctly import it. > > File Example: > tag desc

Re: [Tutor] Regular Expression help

2007-06-27 Thread Kent Johnson
Yikes! Sorry about all the duplicate postings. Thunderbird was telling me the send failed so I kept retrying; I guess it was actually sending! Kent ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Removing a file from a tar

2007-06-27 Thread David Rock
* Adam A. Zajac <[EMAIL PROTECTED]> [2007-06-27 11:26]: > I was reading over the documentation for the tarfile module and it > occurred to me that there didn't seem to be a way to remove an > individual file from the tar. > > For example, suppose I did this: > > import tarfile > tar = tarfile.ope

Re: [Tutor] Finding all locations of a sequence

2007-06-27 Thread Lauren
Firstly, I'd like to thank everyone for their help. I ended up throwing something together using dictionaries (because I understood those best out of what I had), that was a lot faster than my initial attempt, but have run into a different problem, that I was hoping for help with. So, what I have

Re: [Tutor] Finding all locations of a sequence

2007-06-27 Thread Luke Paireepinart
Lauren wrote: > Firstly, I'd like to thank everyone for their help. I ended up > throwing something together using dictionaries (because I understood > those best out of what I had), that was a lot faster than my initial > attempt, but have run into a different problem, that I was hoping for >

Re: [Tutor] python port scanner

2007-06-27 Thread max .
thanks evryone for your help am starting on the project :) On 6/25/07, János Juhász <[EMAIL PROTECTED]> wrote: Dear dos, >>hello i am looking into writing a simple python port scanner but i cant find >>any good tutorials online if anyone can help or knows of any tutorials that >>could help it

Re: [Tutor] Regular Expression help

2007-06-27 Thread Kent Johnson
Gardner, Dean wrote: > Hi > > I have a text file that I would like to split up so that I can use it in > Excel to filter a certain field. However as it is a flat text file I > need to do some processing on it so that Excel can correctly import it. > > File Example: > tag desc