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: 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 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> <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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Friday, August 19, 2011, jmfauth wrote: > On 19 ao=FBt, 19:33, Matt Funk 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. > >=20 > > Anyway, i think at this point i will go another route. Not sure where t= he > > issues lies at this point. >=20 > Seen on this list: >=20 > 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 >=20 >=20 > 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.=20 However, i still won't know WHY it didn't work. I would really LIKE to know= =20 why, simply because it tickles me. matt >=20 > jmf