Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #11883

Re: Help with regular expression in python

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <matze999@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.082
X-Spam-Evidence '*H*': 0.84; '*S*': 0.00; 'received:localnet': 0.07; 'corresponds': 0.09; 'matt': 0.09; 'subject:python': 0.11; 'agreed,': 0.16; 'route.': 0.16; 'subject:expression': 0.16; 'subject:regular': 0.16; 'wrote:': 0.16; 'subject:Help': 0.17; 'seems': 0.20; 'header:In-Reply-To:1': 0.22; 'retaining': 0.23; 'string': 0.26; 'work.': 0.27; 'problem': 0.28; 'matches': 0.29; "won't": 0.29; 'list:': 0.31; "didn't": 0.31; 'proposed': 0.32; 'people,': 0.32; 'probably': 0.33; 'to:addr:python-list': 0.33; 'however,': 0.34; "i'll": 0.34; 'header:User-Agent:1': 0.34; 'message-id:@gmail.com': 0.34; 'numbers.': 0.34; 'similar': 0.35; 'regular': 0.35; 'another': 0.37; 'friday,': 0.37; 'but': 0.37; 'two': 0.37; 'received:128': 0.38; 'think': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'subject:with': 0.39; 'are:': 0.39; 'why': 0.39; 'to:addr:python.org': 0.39; 'where': 0.40; 'your': 0.61; 'results': 0.61; 'header:Message-Id:1': 0.61; 'plus': 0.65; 'august': 0.70; 'header:Reply-To:1': 0.71; 'reply-to:no real name:2**0': 0.71; 'reply-to:addr:gmail.com': 0.78; 'obtained': 0.80; 'funk': 0.84; 'mind:': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=Gmkocp7/5pSVXYhuUFBxaLBgtxF6sGu+EXVnGR9Mv04=; b=fGg0yiDgGc0jymeHBBkwDsZhpIpIODVj3Bk3UGQnJdy4CSTrr2szNspIdeKuUcMilv HiTZAEcLLm1rHjc931mzSvX0TfdbVmEKP216fUjGfnDuy8p+L1rVPekqSPA33VkGDTol 3v0w4FjZ0g/8R3oPsLIXJe6veqxw4ZyqdVP3s=
From Matt Funk <matze999@gmail.com>
To python-list@python.org
Subject Re: Help with regular expression in python
Date Fri, 19 Aug 2011 15:21:58 -0600
User-Agent KMail/1.13.6 (Linux/2.6.38-10-server; KDE/4.6.2; x86_64; ; )
References <201108181349.54727.matze999@gmail.com> <mailman.227.1313775252.27778.python-list@python.org> <2cd0c530-4b1c-4b50-8c9c-12a2fb8d004a@l7g2000vbz.googlegroups.com>
In-Reply-To <2cd0c530-4b1c-4b50-8c9c-12a2fb8d004a@l7g2000vbz.googlegroups.com>
MIME-Version 1.0
Content-Type Text/Plain; charset="iso-8859-1"
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To matze999@gmail.com
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.242.1313788936.27778.python-list@python.org> (permalink)
Lines 32
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1313788936 news.xs4all.nl 23912 [2001:888:2000:d::a6]:40393
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:11883

Show key headers only | View raw


On Friday, August 19, 2011, jmfauth wrote:
> On 19 août, 19:33, Matt Funk <matze...@gmail.com> wrote:
> > The results obtained are:
> > results:
> > [(' 2.199000e+01', ' : (instance: 0)\t:\tsome description')]
> > so this matches the last number plus the string at the end of the line,
> > but no retaining the previous numbers.
> > 
> > Anyway, i think at this point i will go another route. Not sure where the
> > issues lies at this point.
> 
> Seen on this list:
> 
> And always keep this in mind:
> 'Some people, when confronted with a problem, think "I know, I'll use
> regular expressions."  Now they have two problems.'
> --Jamie Zawinski, comp.lang.emacs
> 
> 
> I proposed a solution which seems to corresponds to your problem
> if it were better formulated...
Agreed, and i will probably take your proposed route or a similar one. 
However, i still won't know WHY it didn't work. I would really LIKE to know 
why, simply because it tickles me.

matt

> 
> jmf

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Help with regular expression in python Matt Funk <matze999@gmail.com> - 2011-08-19 09:20 -0600
  Re: Help with regular expression in python jmfauth <wxjmfauth@gmail.com> - 2011-08-19 08:50 -0700
  Re: Help with regular expression in python Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2011-08-19 18:00 +0200
    Re: Help with regular expression in python Matt Funk <matze999@gmail.com> - 2011-08-19 11:33 -0600
      Re: Help with regular expression in python jmfauth <wxjmfauth@gmail.com> - 2011-08-19 11:40 -0700
        Re: Help with regular expression in python Matt Funk <matze999@gmail.com> - 2011-08-19 15:21 -0600
      Re: Help with regular expression in python "rurpy@yahoo.com" <rurpy@yahoo.com> - 2011-08-19 12:55 -0700
        Re: Help with regular expression in python MRAB <python@mrabarnett.plus.com> - 2011-08-19 21:43 +0100
      Re: Help with regular expression in python Carl Banks <pavlovevidence@gmail.com> - 2011-08-19 13:11 -0700
        Re: Help with regular expression in python Matt Funk <matze999@gmail.com> - 2011-08-19 15:55 -0600
        Re: Help with regular expression in python Vlastimil Brom <vlastimil.brom@gmail.com> - 2011-08-22 15:59 +0200

csiph-web