Hi, I have a file with this content:
z zzz z
...
xxx xx x 34.215
zzz zz
...
x and z are letters.
The lines with z are trash, and only the lines with x are
important. I want to extract the number (34.215 in this case) behind
the letters x, and store it in a
1 Nov 2005 09:19:45 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED]:
Hi, I have a file with this content:
z zzz z
...
xxx xx x 34.215
zzz zz
...
Hi,
I'd suggest doing this:
f = file('...')
for line in f:
if 'xxx xx x' in line:
Kristina Kudriašova wrote:
1 Nov 2005 09:19:45 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED]:
Hi, I have a file with this content:
z zzz z
...
xxx xx x 34.215
zzz zz
...
Hi,
I'd suggest doing this:
f = file('...')
for line in f:
if
Steve Horsley wrote:
Kristina Kudriašova wrote:
1 Nov 2005 09:19:45 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED]:
Hi, I have a file with this content:
z zzz z
...
xxx xx x 34.215
zzz zz
...
Hi,
I'd suggest doing this:
f = file('...')
for line
Kristina Kudriaðova [EMAIL PROTECTED] writes:
1 Nov 2005 09:19:45 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED]:
Hi, I have a file with this content:
z zzz z
...
xxx xx x 34.215
zzz zz
...
Hi,
I'd suggest doing this:
f = file('...')
for line in
On Nov 01, Mike Meyer wrote:
Kristina Kudriaðova [EMAIL PROTECTED] writes:
1 Nov 2005 09:19:45 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED]:
Hi, I have a file with this content:
z zzz z
...
xxx xx x 34.215
zzz zz
...
Hi,
I'd suggest