Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Peter Otten <__peter__@web.de> Newsgroups: comp.lang.python Subject: Re: delete from pattern to pattern if it contains match Date: Fri, 22 Apr 2016 11:50:14 +0200 Organization: None Lines: 14 Message-ID: References: <20c0b0fe-136b-4b01-b004-c55c6d47b299@googlegroups.com> <91432d7b-7233-4504-a725-22bc81637ea3@googlegroups.com> <7fc52496-baf8-41ef-8f5e-76d409c6df84@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: news.uni-berlin.de xABSz3us9QlfQqP1uYLGXw7hWHOz9KqVY41QSRYLhs2A== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'xml,': 0.05; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'url:apache': 0.09; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'received:t-ipconnect.de': 0.16; 'wrote:': 0.16; 'fix': 0.21; 'produces': 0.22; 'tried': 0.24; 'xml': 0.24; 'script': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'actual': 0.28; 'code': 0.30; 'post': 0.31; 'similar': 0.33; 'file': 0.34; 'but': 0.36; 'too': 0.36; 'url:org': 0.36; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'someone': 0.38; 'data': 0.39; 'subject:from': 0.39; 'to:addr:python.org': 0.40; 'still': 0.40; 'received:de': 0.40; 'your': 0.60; 'email addr:gmail.com': 0.62; 'real': 0.62; 'yes': 0.62; 'sample': 0.63; 'here': 0.66; 'having,': 0.84 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: p57bd9335.dip0.t-ipconnect.de User-Agent: KNode/4.13.3 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <20c0b0fe-136b-4b01-b004-c55c6d47b299@googlegroups.com> <91432d7b-7233-4504-a725-22bc81637ea3@googlegroups.com> <7fc52496-baf8-41ef-8f5e-76d409c6df84@googlegroups.com> Xref: csiph.com comp.lang.python:107486 harirammanohar@gmail.com wrote: >> @peter yes here it is not xml, but real data is an xml..believe me.. > > @peter this is the similar xml i am having, you can correlate. > > https://tomcat.apache.org/tomcat-5.5-doc/appdev/web.xml.txt This is still too vague. If you post the code you actually tried in a small standalone script together with a small sample xml file that produces the same failure as your actual data I or someone might help you fix it.