delete from pattern to pattern if it contains match

harirammanohar at gmail.com harirammanohar at gmail.com
Mon Apr 25 02:24:52 EDT 2016


On Friday, April 22, 2016 at 3:20:53 PM UTC+5:30, Peter Otten wrote:
> harirammanohar at 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.

yeah peter you are correct, i would have done that atleast by changing the strings, but i wasnt as here its an restricted data and the purpose...so i have taken sample xml data...ofcourse tags are missed..



More information about the Python-list mailing list