Path: csiph.com!au2pb.net!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.freenet.ag!newsfeed0.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!not-for-mail From: Erik Newsgroups: comp.lang.python Subject: Re: I can't understand re.sub Date: Tue, 1 Dec 2015 21:31:15 +0000 Lines: 8 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de Z0lohUMooh8oxKP5JLyN3A2d51BlqVa1q1pPWxTKsJNw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.058 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'lines,': 0.05; 'from:addr:python': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'assuming': 0.22; 'defined': 0.23; 'header :In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'actual': 0.28; 'structure': 0.34; 'should': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'real': 0.62; 'charset:windows-1252': 0.62; 'violent': 0.84 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=bI7rW6KZ c=1 sm=1 tr=0 a=Ypmeq7T0cKALDUsRPCToMg==:117 a=Ypmeq7T0cKALDUsRPCToMg==:17 a=0Bzu9jTXAAAA:8 a=EBOSESyhAAAA:8 a=N659UExz7-8A:10 a=6QDJLWfWOJs9J82U0c4A:9 a=pILNOxqGKmIA:10 a=2yXMRQ5k2pUA:10 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:99819 On 01/12/15 05:28, Jussi Piitulainen wrote: > A real solution should be aware of the actual structure of those lines, > assuming they follow some defined syntax. I think that we are in violent agreement on this ;) E.