Path: csiph.com!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'output': 0.04; 'function,': 0.07; 'received:mail-qc0-f174.google.com': 0.09; 'subject:string': 0.09; 'cc:addr:python-list': 0.10; 'subject:not': 0.11; 'suggest': 0.11; 'yet.': 0.13; 'language': 0.14; 'commandline': 0.16; 'danny': 0.16; 'oct': 0.16; 'two,': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'app': 0.19; 'versions': 0.20; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'command': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'languages': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'really': 0.36; 'why': 0.37; 'received:209': 0.37; 'received:209.85.216': 0.37; 'subject:: ': 0.38; 'perform': 0.38; 'possible.': 0.38; 'header:Received:5': 0.40; 'dont': 0.64; 'miller': 0.69; 'modify.': 0.84; 'task,': 0.91; 'tied': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=JdapnDjgym2HAty+PNGb5KqoCXRQ8KfFW4mc3P7pfqk=; b=nVRJEqIG0bIBFjrVNVf7tPmiW51obyGTc70dizfzSPC4D/RF3wjoocADR8RDSj9La5 MX+5xxygWgNvk+CVPzB2EDtPUrXujCWTGBpLxch7Iez8NpwBBibLxv3jDQ81Sk/C7O1J GnbKwapMplokgPOwAG3+wkMRIzN4Jbgsm6LH1ovCigzQlAIX8mIV6GSdSmJBz3pWV9gG DYCWaNk5Scc4HLfwS4bk68WKrGnOhndExNMkYM50v+6cTNMGh2n/8l4E1cMgEhrxVK3D EVxIDdoz9HZjQ4F2GaPtjdLKd6zs0mw84uoOMLPUjef6GZ6ZjNyS6/DWFU385+B8Bg5e PkEA== MIME-Version: 1.0 In-Reply-To: <73f60cf3-d932-4366-a405-6767488560c6@q16g2000yqc.googlegroups.com> References: <9eba5652-f814-41fa-83e4-460bca2be264@n16g2000yqi.googlegroups.com> <73f60cf3-d932-4366-a405-6767488560c6@q16g2000yqc.googlegroups.com> Date: Thu, 25 Oct 2012 23:02:11 -0400 Subject: Re: Quickie - Regexp for a string not at the beginning of the line From: David Hutto To: Rivka Miller Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1351220534 news.xs4all.nl 6875 [2001:888:2000:d::a6]:59213 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:32188 On Thu, Oct 25, 2012 at 9:08 PM, Rivka Miller wrote: > On Oct 25, 2:27 pm, Danny wrote: >> Why you just don't give us the string/input, say a line or two, and what you want off of it, so we can tell better what to suggest > > no one has really helped yet. > > I want to search and modify. > > I dont wanna be tied to a specific language etc so I just want a > regexp and as many versions as possible. If you just find the one command line app that will perform the task, like awk, then the other languages you will just need to call the commandline function, and return the output from awk. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com