Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'say,': 0.05; 'expressions': 0.07; 'method,': 0.07; 'excellent!': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'reason.': 0.16; 'subject:Regular': 0.16; 'subject:expression': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'issue.': 0.20; 'sort': 0.21; 'trying': 0.21; 'subject:problem': 0.22; 'least': 0.25; 'header :In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'regular': 0.27; 'chris': 0.28; 'problem.': 0.32; 'getting': 0.33; '11,': 0.33; "aren't": 0.33; 'to:addr:python-list': 0.33; 'another': 0.33; 'received:google.com': 0.34; 'wrong': 0.34; 'thanks': 0.34; 'faster': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'thank': 0.36; 'one,': 0.37; 'two': 0.37; 'previous': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'solve': 0.62; 'worth': 0.63; 'stuck': 0.65; '2013': 0.84; 'again!': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=lXkb4cVPTVvgOcPKWCLXZ+iQwNOUlKNGOoUxw2Br83M=; b=mnlouTfV6CCMki+DPMz/Nlg+/smuLu3GrvKeIGBJvNpDG4ZC5C987wZ/cakT+oi29X TcMhH8Eg/iHLxaGv802pwhJRuH/d7Oe6EnL97WlzOb0EvWZLtcGhHNSH9uQX6bnJADW4 Cy5/7EjbTBfLwq9xciVExQTsFWcjLYNJ80X0KPI8ikKxbLesspcajdnyjzfgOhpuuX1n a2nwaBkPatzib6FIxXw2szyttK1zjxutkfwpFjHNwbUPuM5BDIzOCDwT+OB2iIsJvIzH rMMNOBF9RusWqrmabjHxoKo5DV0i58uJRznSJhQrpuaJVg7MC39v+uBTaY9bE1gFjKDw bZfg== MIME-Version: 1.0 X-Received: by 10.220.223.80 with SMTP id ij16mr2012928vcb.28.1362941834323; Sun, 10 Mar 2013 11:57:14 -0700 (PDT) In-Reply-To: References: Date: Mon, 11 Mar 2013 05:57:14 +1100 Subject: Re: Regular expression problem From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362941836 news.xs4all.nl 6977 [2001:888:2000:d::a6]:42024 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41033 On Mon, Mar 11, 2013 at 5:48 AM, mukesh tiwari wrote: > Hi Chris > Thank you! Now I am getting wrong answer so at least program is faster then previous one and I am looking for wrong answer reason. Thanks again! Excellent! Have fun. Incidentally, regular expressions aren't the only way to solve this sort of problem. If you get stuck with one method, it may be worth trying another one, to see if you can get around the issue. As they say, now you have two problems... ChrisA